PDA

View Full Version : How to find the length from the start point of a polyline?



pferreira
2006-07-08, 10:52 PM
You can find the length from the start point of a polyline without breaking it by using this vlisp expression (vlax-curve-getDistAtPoint (vlax-ename->vla-object (car (entsel))) (getpoint "\nSelect point: \n")), with this it will ask you to select an object and then it will ask you to select a point along the polyline, finally it will return the distance from the start point (vertex 1).


Best Regards

Opie
2006-07-10, 03:36 AM
But if you miss the object this would error out. You would need to make sure an item is selected. You will also need to verify that it could have a length.

Other than that, it looks good. ;)