Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

DIESEL command to Freeze and thaw Layers of a drawing

7 REPLIES 7
Reply
Message 1 of 8
Anonymous
301 Views, 7 Replies

DIESEL command to Freeze and thaw Layers of a drawing

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?

7 REPLIES 7
Message 2 of 8
Anonymous
in reply to: Anonymous

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

Message 3 of 8
imadHabash
in reply to: Anonymous

Hi and Welcome to AutoCAD Forum,

 

how about LAYWALK command . 

Imad Habash

EESignature

Message 4 of 8
DGRL
in reply to: Anonymous

@Anonymous

 

 

Is a lisp routine also good for you?

If this was of any help please kudo and/or Accept as Solution
Kind Regards
Message 5 of 8
Anonymous
in reply to: DGRL

Yes, AutoLISP will also do., Can you please provide a sample coding.

Message 6 of 8
DGRL
in reply to: Anonymous

 

@Anonymous

 

Sorry the code I provided first does not do what you want

 

 

If this was of any help please kudo and/or Accept as Solution
Kind Regards
Message 7 of 8
Kent1Cooper
in reply to: Anonymous

I could do that in a command macro, or an AutoLisp function.  Does it need to be in Diesel specifically for some reason?

Kent Cooper, AIA
Message 8 of 8
Kent1Cooper
in reply to: Anonymous

[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

Kent Cooper, AIA

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

AutoCAD Inside the Factory


Autodesk Design & Make Report