Share

About Saving and Restoring Layer States and Settings

Product Documentation
Beginner

You can save your current layer settings as a layer state that you can quickly restore later.

Save Layer Settings

The layer settings that you can save include the properties assigned to each layer such as color and linetype, as well as whether the layer is turned off, frozen, or locked.

Special cases when saving layer states are handled as follows:

  • When layers include property overrides for a layout viewport, those settings are saved to a layer state when the layout viewport that contains overrides is the current one. Thus, the property overrides for only one layout viewport is saved.
  • If a layer state is saved from model space, any layer property override settings associated with layout viewports are not included. If layer property overrides need to be saved in the layer state, make the layout viewport current before saving the layer state.

Restore Layer Settings

When you restore a layer state, the layer settings that were current when the layer state was saved are used. However, the Layer States Manager also lets you specify which layer settings to restore. For example, you can choose to restore only the Frozen/Thawed setting of the layers in a drawing, ignoring all other settings saved in the layer state.

Special cases when restoring layer states are handled as follows:

  • When restoring a layer state, the layer that was current when the layer state was saved is made current. If that layer no longer exists, the current layer does not change.
  • By default, if the drawing contains layers that were added after a layer state was saved, the new layers are turned off when the layer state is restored. The intent of this setting is to preserve the visual appearance of the drawing at the time that the layer state was saved.
  • The following rules apply if you restore a layer state when the current viewport is a layout viewport and the Layer State Manager option, Visibility in Current VP, is turned on:
    • Layers that should be turned off or frozen in the layout viewport are set to VP Freeze
    • Layers that should be visible in the layout viewport are also turned on and thawed in model space

Edit Saved Layer States

Using the Edit Layer State dialog box, you can modify the properties and settings of each layer saved in a layer state. You can also add layers to a layer state through the Select Layers to Add to Layer State dialog box. For example, if new layers were added since the layer state was saved, you can add them, specify their properties and settings, and then resave the layer state.

NoteTo be notified when new layers are added to the drawing, use the LAYEREVAL and LAYERNOTIFY system variables.

Restore Property Override Settings in Layout Viewports

When the Apply Properties as Viewport Overrides option is selected in the Layer States Manager, property overrides are restored to the layout viewport that is current at the time the layer state is restored.

When a layer state is saved in model space and is restored in paper space, the following rules apply:

  • You can choose whether color, linetype, lineweight, transparency, or plot style properties are restored as viewport overrides.
  • Viewport overrides are applied to the current layout viewport.
  • Layers that were turned off or frozen in model space are set to VP Freeze in the Layer Properties Manager for the active layout viewport.

When a layer state is saved in paper space and is restored in model space, the following rules apply:

  • Layer property overrides are restored globally as layer properties in model space.
  • Layers that were frozen in a layout viewport are also frozen in model space.

Apply Layer States in Xrefs

When a drawing that contains saved layer states is referenced in another drawing, the list of xref layer states are displayed in the Layer States Manager.

The names of xref layer states include the referenced drawing’s name separated by two underscore characters using the format, Xref Name__Layer State Name. When the xref is bound to the host drawing, the two underscore characters are replaced by $0$ using the format, Xref Name$0$Layer State Name.

The following rules apply to layer states in xref drawings:

  • The layer states from xrefs cannot be edited in the Layer States Manager.
  • Xref layers can be included in new layer states defined in the referencing drawing.
  • Layer states from nested xrefs are also displayed in the Layer States Manager.
  • Layer states from xrefs are removed from the referencing drawing when the xref is detached or unloaded.

Was this information helpful?