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

sfogliare layer

  • Thread starter Thread starter Pinzy
  • Start date Start date

Pinzy

Guest
Good morning.

guys are new to the forum, thank you in advance for availability.
I explain to you practically I created several scripts in lisp that allow me to browse the layers by increasing and decreasing, currently I am stuck in this situation:
I have 6 layers from 0 to 6, my script starts the layers from "1" the "0" I don't consider it, when I load my script that decreases it makes me double jump, instead of going on layer 6 passes to 5.
Also I would like that every time I step from one layer to another the previous one is frozen and thawed the next making it current.
I'll take my script code down, I don't understand why it's not from 1 to 6, but it's 1 ->5

(setq index2 index)
(if (= indexmin)
(setq indexmax)



(progn)
(setq index2 index)
(setq i)
(Sectq i (- i 1))
(setq index (i))
(command "_layer" index ")
(command "_layer" "r" index")
(command "_layer" "_f" index2 ")
)
)
 
simply because with education (setq i (- i 1)) you start from your indexmax (6) and force it to remove 1.
therefore never the value of i can be equal to indexmax, but to the maximum (max-1 index)
 

Forum statistics

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

Members online

No members online now.
Back
Top