PDA

View Full Version : Setq objects



pintech
16th May 2005, 06:36 pm
Hi everyone,I have a dout right now can anyone give a hand?

Imagine this:
I draw a box(for example),and keepwith a (setq box1 (entlast)).I make this part with no difficulties but:

If I draw a sphere(for example) and array it the number of times defined by the users,supposing that I want to keep keep
all that spheres with a setq again,is that possible?setq spheres alllast?

Then I want to be able:
(command "subtract" box1 "" all the spheres"")

Was I clear?
Thanks a lot,My hunch goes for the selction sets,but I don't know how to work with it,unfortunately...

Can anyone give me a hand?

fuccaro
17th May 2005, 07:30 am
Pintech

Before you begin the array thing save the name of the last entity:

(setq lastent (entlast))
This can be the box or anything else.
Now draw your spheres
You can subtract from BOX1 the solids created after the entity named LAST

(setq l1 lastent)
(while l1
(command "_subtract" box1 "" l1 "")
(setq l1 (entnext l1))
)