Returns the length of the curve's segment between the curve's start point and the specified point
(vlax-curve-getDistAtPoint curve-obj point)
Arguments
The VLA-object to be measured.
A 3D point list (in WCS) on curve-obj.
Return Values
nil.
A real number if successful; otherwiseExamples
splineObj points to the spline shown in the example for vlax-curve-getDistAtParam.
For the following example, assume thatSet OSNAP to tangent and select the point where the line is tangent to the curve:
_$ (setq selPt (getpoint))
(4.91438 6.04738 0.0)
Determine the distance from the start of the curve to the selected point:
_$ (vlax-curve-getDistAtPoint splineObj selpt)
5.17769