Returns the length of the curve's segment from the curve's beginning to the specified parameter
Supported Platforms: Windows only
(vlax-curve-getDistAtParam curve-obj param)
Type: VLA-object
The object to be measured.
Type: Integer or Real
A number specifying a parameter on the curve.
Type: Real or nil
A number that is the length up to the specified parameter, if successful; otherwise nil.
Assume that splineObj points to the spline in the following drawing:
Sample curve (spline) for vlax-curve-getDistAtParam
Obtain the start parameter of the curve:
(setq startSpline (vlax-curve-getStartParam splineObj)) 0.0
The curve starts at parameter 0.
Obtain the end parameter of the curve:
(setq endSpline (vlax-curve-getEndParam splineObj)) 17.1546
The curve's end parameter is 17.1546.
Determine the distance to the parameter midway along the curve:
(vlax-curve-getDistAtParam splineObj ( / (- endspline startspline) 2)) 8.99417
The distance from the start to the middle of the curve is 8.99417.