Freeze new layer in multiple layouts

Freeze new layer in multiple layouts

thomas_schluesselberger
Advocate Advocate
294 Views
4 Replies
Message 1 of 5

Freeze new layer in multiple layouts

thomas_schluesselberger
Advocate
Advocate

Hi!

 

I'm searching for an easy way to freeze specific layers in multiple, selectable layouts.

Inside my layouts the wanted layers should only be frozen in the biggest viewport that exists in the layout.

 

Maybe someone has an LISP that can do that?

 

Hopefully i discribed good what i want. 

0 Likes
295 Views
4 Replies
Replies (4)
Message 2 of 5

pendean
Community Legend
Community Legend

@thomas_schluesselberger wrote:

Hi!

 

I'm searching for an easy way to freeze specific layers in multiple, selectable layouts.

Inside my layouts the wanted layers should only be frozen in the biggest viewport that exists in the layout.

 

Maybe someone has an LISP that can do that?

 

Hopefully i discribed good what i want. 


The built-in command is VPLAYER, it has the abilities you seek, are you just trying to quicken the execution or something else perhaps https://help.autodesk.com/view/ACD/2024/ENU/?guid=GUID-EB4DA3DA-5466-4D48-9AEC-6828B82BDEF9#:~:text=...

 

Here is a quick video https://www.youtube.com/watch?v=rv-yaIIB3bQ  

0 Likes
Message 3 of 5

thomas_schluesselberger
Advocate
Advocate
Hi!

Thanks for the answer.

If I see it correctly, the command only works if you make the changes directly in the layout.
However, I want to set frozen layers directly from model-space and also i want to be able to do multiple layouts at one time. (As described in my first post, I want the layer freezing to only be done in the largest viewport in the layout)

Yes, I would like to speed up the process, otherwise as soon as I create a new layer that should only be visible in certain layouts, I have to adjust the viewports every time in each layout.
0 Likes
Message 4 of 5

pendean
Community Legend
Community Legend

@thomas_schluesselberger wrote:
...If I see it correctly, the command only works if you make the changes directly in the layout. ...

It works just fine in modelspace too: explore it. Test it. you want the suboption Newfrz (but also explore Vpvisdflt).
We use that command from modelspace more often than not.

 


@thomas_schluesselberger wrote:
...Yes, I would like to speed up the process, otherwise as soon as I create a new layer that should only be visible in certain layouts, I have to adjust the viewports every time in each layout.

One you understand how VPLAYER works, automating with LISP is easy: experiment then post what works for you here for someone to write as a LISP.

0 Likes
Message 5 of 5

Sea-Haven
Mentor
Mentor

Use (setq ss (ssget "X" '((0 . "VIEWPORT")(cons 410 (getvar 'ctab))))) this will get the viewports in a layout, there is 2 properties Height & Width so can get an area of a viewport, then save the largest and use VPLAYER. If you get stuck ask for help.

0 Likes