Display full version of the post: LISP

tdaraban
23.11.2011, 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
tdaraban2011-11-23 21:35:09

John Connor
24.11.2011, 01:08
Wouldn't a simple LIST give you the information you seek?


tdaraban
28.11.2011, 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