CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Joined: 23.Nov.2011
Location: United States
Using: AUTOCAD 2012 mep Status: Offline
Points: 2
Topic: LISP Posted: 23.Nov.2011 at 21:20
Hi,
I want to use a lisp routine to add trapeze supports for electrical conduits in Autocad MEP but I don't know how to extract the x,y,z from a conduit. For example if I need the same info for a regular Cad entity like a line, I use (entget (car (entsel))) but it doesn't work for electrical conduits or cable trays please help
Joined: 23.Nov.2011
Location: United States
Using: AUTOCAD 2012 mep Status: Offline
Points: 2
Posted: 28.Nov.2011 at 02:09
I'm new at LISP but as far as I know the entget command return an entity code that have among other info the x,y,z coordinate, that is for regular cad entities. Not sure if a simple LIST can be read by LISP and extract the coordinates, I think it needs to be one of the commands recognized by LISP
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum