vlax-curve-getDistAtPoint

AutoCad AutoLISP Functions

 
vlax-curve-getDistAtPoint
 
 
 

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

curve-obj

The VLA-object to be measured.

point

A 3D point list (in WCS) on curve-obj.

Return Values

A real number if successful; otherwise nil.

Examples

For the following example, assume that splineObj points to the spline shown in the example for vlax-curve-getDistAtParam.

Set 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