Forum unknown
· AutoLISP
#how to
5 messages in this thread
Is there anyway to extract the X,Y,Z coordinates of a pline's vertices
without using a dfx file?
Sure, what you need to do is dig into entity access a little. The 38 field
in a Lisp entity list gives you the Z (or elevation) of the entity. If
this field is not present the Z elevation is 0. You can pull that
information off the entity list for each vertex of pline, then get the 10
field (X,Y coordinates) and APPEND them and have X,Y,Z.
Sure, what you need to do is dig into entity access a little. The 38 field
in a Lisp entity list gives you the Z (or elevation) of the entity. If
this field is not present the Z elevation is 0. You can pull that
information off the entity list for each vertex of pline, then get the 10
field (X,Y coordinates) and APPEND them and have X,Y,Z.
Yes, Steve, you can use AutoLISP to get the X, Y and Z (elevation) of a
PLINE's vertices. For example, use entlast or entsel to grab the entity
name of the PLINE, then "step" through the vertices with entnext. The xy
and elevation have group codes according to DXF rules. =SM=
Yes, Steve, you can use AutoLISP to get the X, Y and Z (elevation) of a
PLINE's vertices. For example, use entlast or entsel to grab the entity
name of the PLINE, then "step" through the vertices with entnext. The xy
and elevation have group codes according to DXF rules. =SM=