Can anyone help me to write a DIESEL command, which
turns OFF (lightbulb) all layers,
FREEZES all layers,
then turns ON selected layer, and
THAWS selected layer?
Can anyone help me to write a DIESEL command, which
turns OFF (lightbulb) all layers,
FREEZES all layers, then
turns ON selected layer, and
THAWS selected layer
Hi and Welcome to AutoCAD Forum,
how about LAYWALK command .
Imad Habash
@Anonymous
Is a lisp routine also good for you?
@Anonymous
Sorry the code I provided first does not do what you want
I could do that in a command macro, or an AutoLisp function. Does it need to be in Diesel specifically for some reason?
[Oops -- didn't read all the messages before Posting my question....]
(defun C:WHATEVER ()
(command
"_.layer"
"_set" "Layer1" ; to ensure the one left un-Frozen is one you want on at end
"_off" "*" "_no"
"_freeze" "*" ; [no question to answer -- just refuses to Freeze current Layer]
"_thaw" "Layer1,Layer2,Layer3"
"_on" "Layer1,Layer2,Layer3"
"" ; complete Layer command
"_regen" ; in case any of them were Frozen before, and require Regen to show again
); command
(princ)
); defun
Can't find what you're looking for? Ask the community or share your knowledge.