Immediately after creating the object, use this to get the Handle:
(cdr (assoc 5 (entget (entlast))))
or this to get the Ename (which can also be passed to most routines)
(cdr (assoc -1 (entget (entlast))))
wrote in message news:5147869@discussion.autodesk.com...
I am attemtping to write a LISP routine that will draw geometric shapes,
based upon their equations. Inputs should be only a few parameters. The user
should not be doing any CAD work (I hope). On the small scale, CAD will
start with a point, calculate the next point, then draw a line/arc. After
four lines are drawn, I would like to use the EDGESURF command within the
routine.
Here are my two questions:
1. The EDGESURF command asks for sides (or boundary "segments") upon which
to operate. I am stumped on how I could "select" each segment by its handle,
given that the HANDLE routine I have is not transparent, i.e., I cannot
execute it while still within the EDGESURF dialogue.
2. If problem 1 can be solved, how can I store the handle of each line/arc
as it is drawn, without LISTing and typing it back in?
Any help is greatly appreciated.