CompuServe Thread

Forum unknown · AutoLISP

#how to

5 messages in this thread
#21586From: steve van kootenApr 6, 1988 6:03 PM
Is there anyway to extract the X,Y,Z coordinates of a pline's vertices without using a dfx file?
#21608From: Jamie Clay [Adesk]Apr 7, 1988 1:18 PM
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.
#21608From: Jamie Clay [Adesk]Apr 7, 1988 1:18 PM
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.
#21624From: Steve McCall [ADESK]Apr 7, 1988 4:58 PM
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=
#21624From: Steve McCall [ADESK]Apr 7, 1988 4:58 PM
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=