I want to get the nodes on which the \*cline intersects the hypothetical edge of \ncput. The following animation shows my attempt to find the nodes by a trial & error approach.
I need the nodes because I want to have a transparent background in PNG format in which \ncput* fails to do so.

\documentclass[pstricks,border=12pt,multi]{standalone}
\usepackage{pst-eucl,multido}
\begin{document}
\multido{\n=0.1+0.1}{10}{%
\begin{pspicture}[showgrid=false](2,2)
\pstGeonode
[
PosAngle={135,-45},
PointName={default,default,none},
PointSymbol={none}
]
(0,1){A}
(2,0){B}
([offset=15pt]{B}A){A'}
([offset=-15pt]{A}B){B'}
([nodesep=\n]{B'}A'){A''}
([nodesep=\n]{A'}B'){B''}
%
\psline(A)(B)
%
\bgroup
\psset{linestyle=dashed,dash=1pt 1pt,linecolor=red,linewidth=0.5\pslinewidth}
\psline(A)(A')
\psline(B)(B')
\egroup
%
\pcline{|<*-}(A')(A'')
\pcline{->|*}(B'')(B')
\ncline[linestyle=none]{A''}{B''}
\ncput[nrot=:0]{$\sqrt{5}$}
\end{pspicture}}
\end{document}


