Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Lisp file to thaw all layers frozen in the viewport,

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
JamaL9722060
2446 Views, 4 Replies

Lisp file to thaw all layers frozen in the viewport,

Lisp file to thaw all layers frozen in the viewport,

 

I’m wondering if there is a lisp file that can thaw all layers frozen in the viewport

 

Clip_313.jpg

 

Thank you

 

Best

 

Jamal

---------------------------
Jamal Numan
4 REPLIES 4
Message 2 of 5
Kent1Cooper
in reply to: JamaL9722060


@JamaL9722060 wrote:

.... 

I’m wondering if there is a lisp file that can thaw all layers frozen in the viewport

....


This will do that in all Viewports in all Layouts in the drawing, and return you to the Layout you were in when you started:

 

(setq clayout (getvar 'ctab))
(foreach layout (layoutlist)
  (setvar 'ctab layout)
  (command "_.vplayer" "_thaw" "*" "_all" "")
)
(setvar 'ctab clayout)

 

The (command) line only above will do it in all Viewports in the current Layout only.  This will do it in the current Viewport only, if you're in one:

 

  (command "_.vplayer" "_thaw" "*" "" "")

Kent Cooper, AIA
Message 3 of 5
JamaL9722060
in reply to: Kent1Cooper

I don’t know how to thank you for all the massive efforts

 

The code that thaws all the layers in for the current viewport is working perfectly

 

The code that thaws all layers in ALL viewports sounds not to work!

 

Clip_336.jpg

 

What might be the issue?

 

Best

 

Jamal

---------------------------
Jamal Numan
Message 4 of 5
pbejse
in reply to: JamaL9722060

Works fine here in 2009. 

 

If anything the file you attached is missing a closing parenthesis at the end

 

 

 

Message 5 of 5
JamaL9722060
in reply to: pbejse

Thank you pbejse for the prompt help. This is really very useful.

 

Clip_341.jpg

 

I do remember your distinct development regarding the “safe move” with your fantastic code. Now one can move objects safely.

 

All the best

 

Jamal

---------------------------
Jamal Numan

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

Post to forums  

Autodesk Design & Make Report

”Boost