Saving and Restoring Layer States

You can use the LayerState command to save, restore, and manage configurations of layer properties and states. Layer states are snapshots of current Layer settings.

You can also edit the layer properties within layer states. The software saves layer states with the drawing. You can export layer states to files of type *.las. You can import Layer states from *.las files and from drawing files.

This task shows you how to:

Save Layer States

You can save layer states.

  1. Type LayerState in the command window.
  2. In the dialog box, click Add .
    A new table item is created in the list of layer states with a preset Name and the Space information indicating whether the layer state was created in the model or on a sheet.
  3. Optional: Edit the layer state Name.
  4. Optional: Enter a Description.
  5. Under Layer properties to restore, select or clear the layer properties to save with the layer state:
    • On or Off
    • Freeze or Thaw
    • Lock or Unlock
    • LineColor
    • LineStyle
    • LineWeight
    • PrintStyle
    • Transparency
    • Print or no print
    • Freeze/Thaw in new Viewport

    The visibility in an active viewport is available only if you save the layer state in a sheet viewport, not in the model.

  6. Under Options, specify:

    • Hide layers not assigned to layer state: Hides any layers that you added since the layer state was last saved when you restore the layer state.
    • Set properties as viewport overrides (available only when you define a layer state when a viewport on a sheet is active): Specifies whether layer property overrides apply to the current viewport.

  7. Click Save .
  8. Click Close.

Restore Layer States

You can restore the layer states.

  1. Enter LayerState in the command window.
  2. In the dialog box, select a layer state.
  3. Click Activate .
  4. Click Close.

    Note: Layers that you have added since the layer state was last saved remain uneffected when you restore the layer state.

Edit Layer States

You can edit the layer states.

  1. Enter LayerState in the command window.
  2. In the dialog box, select a layer state.
  3. Click Edit .
    The Edit Layer States dialog box appears.
  4. Add the layers that you added since the layer state was last saved:    
    1. Select layers.
    2. Click Add .
  5. Delete layers from the layer state:    
    1. Select layer entries in the layers table.
    2. Click Delete .
  6. Change the properties of layers in the layer state:    
    1. Select properties in the layers table and modify them.
  7. Click OK and Close.

    Note: Changes in the Edit Layer States dialog box do not affect layer settings until you restore the modified layer state.

Delete Layer States

You can delete the layer states.

  1. Type LayerState in the command window.
  2. In the dialog box, select a layer state.
  3. Click Delete .
  4. Click Close.

    Note: Layers remain in the drawing when you delete layer states.

Import Layer States

You can import the layer states.

  1. Type LayerState in the command window.
  2. Click Import.
  3. In the dialog box, select a file name from which you want to import a layer state.

    You can import layer states from:

    • Drawing files (*.dwg), drawing template files (*.dwt), and drawing standards files (*.dws)
    • Layer state files (*.las)

  4. In the Import Layer States dialog box, select the layer states to import.
  5. Click OK and Close.

Export Layer States

You can export the layer states.

  1. Type LayerState in the command window.
  2. Click Import.
  3. In the dialog box, select a layer state.
  4. Click Export.
  5. In the dialog box, specify the folder and name of the layer state file (*.las) to write.
  6. Click OK and Close.