Override Layer Properties in Viewports

You can display objects differently by setting property overrides for color, linetype, lineweight, transparency, and plot style and apply them to individual layout viewports.

Using property overrides is an efficient way for displaying objects with different property settings in individual viewports without changing their ByLayer or ByBlock properties. For example, objects can be made to display more prominently by changing their color. Because layer property overrides do not change the layer’s global properties, you can have objects display differently in various viewports without having to create duplicate geometry or use xrefs that have different layer settings.

Property override settings for color and lineweight were set on the Wiring layer for the viewport on the left. Notice the wiring is a different color and lineweight than in the right viewport.

When the Layer Properties Manager is accessed from a layout tab, five columns for layer property overrides are displayed

  • VP Color
  • VP Linetype
  • VP Lineweight
  • VP Transparency
  • VP Plot Style (available only in named-plot style drawings)

When a property override is set for a layer, a Viewport Overrides filter is automatically created in the Layer Properties Manager.

If you do not want to display or plot property overrides, set the VPLAYEROVERRIDESMODE system variable to 0. Objects will display and plot with their global layer properties.

NoteProperty overrides can still be set even when VPLAYEROVERRIDESMODE is set to 0.

Property overrides that are on xref layers are not retained when the VISRETAIN system variable is set to 0.

Identify Layers with Property Overrides

Layers containing property overrides are identifiable in the Layer Properties Manager when accessed from a layout tab. You can see which layers have overrides by the following:

  • A background color displays for each layer name, override and corresponding global property setting.
  • A tooltip displays property override information when the cursor is placed over the status icon for the layer containing overrides.
  • A different icon displays in the Status column.
  • A predefined filter named Viewport Overrides is displayed in the tree view where all layers with viewport overrides are listed.

Layers that are assigned property overrides are also identifiable outside of the Layer Properties Manager. Other areas of the user interface that indicate which layers are assigned property overrides are as follows:

  • Layers toolbar. A background color displays behind layer names for the current viewport. For color overrides, the override color is displayed instead of the global color.
  • Properties toolbar. Displays ByLayer (VP) and a background color for layers or objects that are assigned property overrides. Override properties are displayed for color, linetype, and lineweight instead of global properties.
  • Layers panel on the ribbon. A background color displays behind the layer names in the Layer drop-down list. Override properties are displayed for color, linetype, and lineweight instead of global properties.
  • Properties panel on the ribbon. A background color displays behind the color, linetype, lineweight, and plot style controls. Override properties are displayed for color, linetype, and lineweight instead of global properties.
  • Properties palette. Displays ByLayer (VP) and a background color for layers or objects that are assigned property overrides. Override properties are displayed for color, linetype, and lineweight instead of global properties.
NoteThe background color for viewport overrides can be changed in the Layer Settings dialog box.

Property overrides that are set on the Lighting layer for the current viewport are indicated by a blue background color.

Identify Viewports with Layer Property Overrides

Use the VPLAYEROVERRIDES system variable to check if the current viewport contains layer property overrides. When VPLAYEROVERRIDES is equal to 1, the viewport contains overrides.

You can also use the Properties palette to determine if a viewport contains overrides. The Properties palette displays a Layer Property Overrides field. The value that displays is the same as the setting for VPLAYEROVERRIDES.

Remove Layer Property Overrides

When you right-click a layer in the Layer Properties Manager, a shortcut menu is displayed that lists options for removing property overrides. You can remove

  • A single property override from the selected layer for the selected viewport or for all selected viewports
  • All property overrides from the selected layer for the selected viewport or for all selected viewports
  • All property overrides from all layers in the selected viewport or for all selected viewports
NoteAnother method for removing property overrides is to use the shortcut menu when you right-click the border of the selected viewport or viewports. You can remove viewport overrides for all layers for that viewport.
Procedures
To assign property overrides for the current layout viewport
  1. On the layout tab, double-click inside a viewport to make it current.
  2. Click Home tab Layers panel Layer Properties
  3. In the Layer Properties Manager, select the global properties to override in the VP Color, VP Linetype, VP Lineweight, and VP Plot Style columns.
To remove an override from a layer for the current layout viewport
  1. On the layout tab, double-click inside a viewport to make it current.
  2. Click Home tab Layers panel Layer Properties
  3. In the Layer Properties Manager, right-click the property override on the layer you want to remove.
  4. Click Remove Viewport Overrides For Property Override (Color, Linetype, Lineweight, Plot Style)In Current Viewport Only.
To remove an override from a layer for all layout viewports
  1. On the layout tab, double-click inside a viewport to make it current.
  2. Click Home tab Layers panel Layer Properties
  3. In the Layer Properties Manager, right-click the property override on the layer to remove.
  4. Click Remove Viewport Overrides For Property Override (Color, Linetype, Lineweight, Plot Style)In All Viewports.
To remove all overrides from a layer for the current layout viewport
  1. On the layout tab, double-click inside a viewport to make it current.
  2. Click Home tab Layers panel Layer Properties
  3. In the Layer Properties Manager, right-click the layer.
  4. Click Remove Viewport Overrides For Selected Layers In Current Viewport Only.
To remove all overrides for all layout viewports
  1. Click a layout tab.
  2. Click Home tab Layers panel Layer Properties
  3. In the Layer Properties Manager, select the Viewport Overrides filter.
  4. Right-click on any layer. Click Remove Viewport Overrides For All Layers In All Viewports.
To check if the current layout viewport contains layer property overrides
  1. Double-click within a viewport to make it current.
  2. At the Command prompt, enter vplayeroverrides.

If VPLAYEROVERRIDES displays 1, the selected viewport contains layer viewport overrides. If 0 is displayed, no overrides are found.

To control the transparency of objects or layout viewports on a layer
  1. Click Home tab Layers panel Layer Properties.
  2. In the Layer Properties Manager, enter a value between 0 and 90 in the Transparency or VP Transparency columns for each layer you want to make transparent.
    NoteThe VP Transparency column is only available when a Layout tab is active.
  3. Press Enter.
To not display or plot layer viewport overrides
  1. At the Command prompt, enter vplayeroverridesmode.
  2. Enter 0.
To change the background color for property overrides
  1. Click Home tab Layers panel Layer Properties
  2. In the Layer Properties Manager, click Settings.
  3. In the Layer Settings dialog box, select a color for the viewport override background color.
  4. Click OK.
To save layer viewport overrides in a layer state
  1. On a layout tab, double-click in a viewport to make it active.
  2. Click Home tab Layers panel Layer States Manager
  3. In the Layer States Manager, click New.
  4. In the New Layer State to Save dialog box, enter a name for the new layer state, or select a name from the list. (Optional) Add a description.
  5. Click OK.
  6. Click Close to exit the Layer State Manager.
Commands
CHPROP

Changes the properties of an object.

CLASSICLAYER

Opens the legacy Layer Properties Manager.

LAYER

Manages layers and layer properties.

PROPERTIES

Controls properties of existing objects.

PURGE

Removes unused items, such as block definitions and layers, from the drawing.

RENAME

Changes the names assigned to items such as layers and dimension styles.

System Variables
CLAYER

Sets the current layer.

VPLAYEROVERRIDES

Indicates if there are any layers with viewport (VP) property overrides for the current layout viewport.

VPLAYEROVERRIDESMODE

Controls whether layer property overrides for layout viewports are displayed and plotted.