Hi
could any one help to find a solution?
I wanna label the start and end coordinates only for a 3D poly line using lisp. The 3D poly line have no of vertex points in it.
Solved! Go to Solution.
Solved by Kent1Cooper. Go to Solution.
You can get the start and end points only with
(vl-load-com); if needed
(vlax-curve-getStartPoint YourPolylineEntityName)
(vlax-curve-getEndPoint YourPolylineEntityName)
Those will be point coordinate lists [lists of three real numbers for the XYZ coordinates]. You can convert those into Text in a variety of ways -- what did you have in mind? And how would you want the labels positioned? Something like middle-center-justified at the start/end vertex itself in 3D? Or at a location to be specified by the User?
A sample drawing or image showing the result you're looking for would be helpful.
@karunakaran1991 wrote:
Hi Cooper
Thanks for your precious time.
You're welcome. For your information, that approach will find the start and end points of not just 3DPolylines, but also 2D "heavy" and Lightweight Polylines, Lines, Arcs, Circles, Ellipses, Splines, and maybe a couple of other things. It can also be done in other ways without the (vlax-curve-...) functions and therefore without needing to do (vl-load-com), but it would be a different way for each of those entity types, and in the case of 2D "heavy" and 3DPolylines, rather more complicated.