Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

DIESEL command to Freeze and thaw Layers of a drawing

Anonymous

DIESEL command to Freeze and thaw Layers of a drawing

Anonymous
No aplicable

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?

0 Me gusta
Responder
355 Vistas
7 Respuestas
Respuestas (7)

Anonymous
No aplicable

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

0 Me gusta

imadHabash
Mentor
Mentor

Hi and Welcome to AutoCAD Forum,

 

how about LAYWALK command . 

Imad Habash

EESignature

0 Me gusta

DGRL
Advisor
Advisor

@Anonymous

 

 

Is a lisp routine also good for you?

If this was of any help please kudo and/or Accept as Solution
Kind Regards

Anonymous
No aplicable

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

0 Me gusta

DGRL
Advisor
Advisor

 

@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
0 Me gusta

Kent1Cooper
Consultant
Consultant

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
0 Me gusta

Kent1Cooper
Consultant
Consultant

[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
0 Me gusta