Automatically Change to Viewport Layer when Making Viewports

Automatically Change to Viewport Layer when Making Viewports

michaelwL4TRH
Contributor Contributor
562 Views
3 Replies
Message 1 of 4

Automatically Change to Viewport Layer when Making Viewports

michaelwL4TRH
Contributor
Contributor

Hey,

 

Is there a way to automatically have autocad change to a "viewport" layer when I am on the layout tabs and hit the "Insert View" button under layout viewports. Currently when I use that to make a viewport it uses the current layer I have selected.

 

Similarly, would this be possible for dimensions? Where if I hit "Dimension" it'll automatically change my layer to my "Dimension" layer.

 

Hoping this is possible to save a few clicks and minutes.

 

Thanks.

 

0 Likes
563 Views
3 Replies
Replies (3)
Message 2 of 4

ronjonp
Mentor
Mentor
0 Likes
Message 3 of 4

ВeekeeCZ
Consultant
Consultant

So far, as the current version is 2022, there are these variables available for layer maintenance.

For all the rest of the objects (VPs included), you need to use the above-linked routine or a similar one.

 

CENTERLAYER
HPLAYER
DIMLAYER
TEXTLAYER
XREFLAYER

0 Likes
Message 4 of 4

CAD_CRC
Contributor
Contributor
I use a tool palette to accomplish this for both the viewport and the dimensions. You can set the palette to use any layer you choose as well as dimension, leader and text styles for annotation objects. For my vport command I have the following macro built in to it.

^C^C_vports;R;;\\MVIEW;L;ON;L;;MVIEW;S;HIDDEN;L;;LAYERP;

When you right click on the command in the palette you can access the properties where you can set layers, styles and put in a command string.
0 Likes