Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Handle Transparency

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
173 Views, 2 Replies

Handle Transparency

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.
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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.
Message 3 of 3
Anonymous
in reply to: Anonymous

Thank you. The ename bit worked perfectly, and I am now very close to a complete hull modeling routine.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report