vlax-curve-getdistatpoint


(vlax-curve-getdistatpoint curveEnt point)

This function returns the distance from curveEnt curve's start point to the specified point along the curve.

Arguments

curveEnt  (ename or vla-object) the COM object of any "curve" entity
point  (list x y [ z ]) 2d/3d point in WCS;  point on the curve

Return

double;  the distance of the curve (relative to the curve's start point) or NIL

Example

last entity is a LINE<0,0,0> to <10,10,10> :
(setq ent (vlax-ename->vla-object (entlast)))  #<VLA-OBJECT IAcadLine 000000004E8E3928>
(vlax-curve-getdistatpoint ent '(5 5 5))  8.66025403784439

Remarks




©  Bricsys NV. All rights reserved.