Update
Get X/Y co-ordinate of start or end point by
Expression:CurSegP0( 0 ) or Expression:CurSegP0( "x" ) , X co-ordinate of start point
Expression:CurSegP0( 1 ) or Expression:CurSegP0( "y" ) , Y co-ordinate of start point
Expression:CurSegP1( 0 ) or Expression:CurSegP1( "x" ) , X co-ordinate of end point
Expression:CurSegP1( 1 ) or Expression:CurSegP1( "y" ) , Y co-ordinate of end point
newt
See the sample capx in document.