Hi Runevierun,
If you want to use automation and can do a bit of VB/VBA programming, you
can use the LengthIU property:
Visio.ActiveWindow.Selection(1).LengthIU
However this doesn't work correctly in Visio 2003 if the path is open (due
to a BUG). So you have to temporarily close the path by setting:
Geometry1.NoFill = False
Then get the .LengthIU, then subtract the distance from the begin to the end
of the connector (ref: Pythagorus)
Come to think of it, I should probably write a script to do this and put it
on my web site.
By the way, I believe the problem has been fixed in Visio 2007.
--
Hope this helps,
Chris Roth
Visio MVP
Free Visio shapes:
http://www.visguy.com/category/shapes
Visio programming info:
http://www.visguy.com/category/programming/
Other Visio resources:
http://www.visguy.com/visio-links/