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

command that selecting a congeli object all layers except that belonging to the object itself and a layer called

  • Thread starter Thread starter lattu
  • Start date Start date

lattu

Guest
Hello everyone, I need help from experts.
I would have the need to create a command that by selecting an object you conge all layers except that belonging to the object itself and the layer called carpentry
is something similar to the layer island but in my case it does not work properly. Can you do that?
 
you read too quickly, I need a command that doesn't exist, type island layer but with freezing of all other layers except 1 with a well defined name
 
very rough but it works... .
(defun c:ii () (command"_undo" "_gr" "_isolay" pauses")
(command"_layer" "_t" "carpenteria" "_on" "carpenteria" "_undo" "_end")
)
 
Code:
(defun c:setlayerfreeze(/ sel piano)
    (while (not (setq sel (entsel "\nseleziona entità: "))))   
  (setq piano (cdr (assoc 8 (entget (car sel)))))
    (command "_layer" "_m" "carpenteria" "")
    (command "_layer" "_freeze" "*" "")
    (command "_layer" "_thaw" piano "")
)
(defun c:setlayerstd()
    (command "_layer" "_thaw" "*" "")
)
setlayerfreeze: entity selections, all frozen except carpentry and plane entity.
setlayerstd: destroy all plans.
 
Sorry about the latitude but there were other priorities.
the rpor66 lisp works (as always).
If now you want to add layers that remain thawed in addition to carpentry, how can I change the code?
Thank you.
 
aggiungi dopo la linea che contiene (command "_layer" "_thaw" piano "")
altri command:
(command "_layer" "_thaw" "miopiano1" "")
(command "_layer" "_thaw" "miopiano2" "")
etc.
 

Forum statistics

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

Members online

No members online now.
Back
Top