• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

turn on multiple layers with a button

  • Thread starter Thread starter zintonio
  • Start date Start date

zintonio

Guest
Hello.
I need help creating a lisp that allows me to turn on a layer and turn off all the others. I make an example so as to be clearer:

pressing the key 5 of the keyboard you have to turn on the layer b5,t5 and g5 and then turn off all other layers.
then pressing the 3 button you have to turn on b3,t3 and g3 and so on.

I hope I've been clear
thanks in advance
 
the command in lisp (isolap num) operates as follows:
(isolap 1) creates layers b1 t1 g1, makes b1 active and turns off the rest.
(isolap 2) creates the layers b2 t2 g2, makes b2 active and turns off the rest, etc...

(isolap 0) ignites all layers.

and I'll stop here.

for the assignment of the keys, you can associate the command with a sequence of buttons control+1, control+2 etc., or alt+1, alt+2 etc.
you can also create a toolbar and associate the command.

for this you open a new discussion, if you are not able to do it, of course.

Hi.
 

Attachments

thanks rpor66
That's exactly what I meant. as I stop the lisp ignite the btg layers and turn off the rest. If I want to freeze and thaw instead of _on I have to use the _g and _sc command right?

Now I try to associate to a sequence of buttons the lisp. if I cannot or find problems I open a new discussion.

Thanks again
greetings
 
[?/Make/Set/New/Rename/ON/OFF/Color/Ltype/LWeight/MATerial/Plot/Freeze/Thaw/LOck/Unlock/stAte/Description/rEconcile]these are the commands you can use with the _layer command.
in your case to freeze/break using _f (congela) and _t (scongela).

Hi.
 
Okay!

from how I am noticing, if I have to assign a sequence of buttons to the command (isolap 1 etc) I have to create so many assignments as the layers are. In the sense, that if I have layers up to b18 t18 and g18, to see each layer I have to create 18 keystrokes. There is a method to avoid doing this. or some command using the number I enter in the command (e.g. ctrl+1, use the 1 to turn on b1, t1, g1)

I hope I was clear, thank you.
 
Okay!

I tried to associate the following code with a pulse sequence:
^c^c(isolap (getint "\nnum:")

but do not go...in the sense that I have to click 2 times on sending to start the lisp.

Am I wrong?
 
I solved! putting set num getint ("num:") in the list and I associated the sequence with the command ^c^c_isolap.

I wanted to ask if you can scroll the layers with the arrow buttons on/down or with the page up or page down buttons. If it is possible you could give me a tip?

Thank you.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top