Stratal CAD

Layer states and layer filters

Help centre · Drawing and editing

Layer states save and restore the settings of every layer under a name, and layer filters shorten a long layer list to the layers you need. They are for drawings with many layers and several ways of showing them.

Before you start

Steps: save and restore a layer state

  1. Set the layers as you want them (on, frozen, locked, plotting, colours and so on).
  2. In the Layers panel, open States and choose Save current settings…. Type a name, for example Plan for issue. If the name exists you are asked "Layer state NAME exists. Replace it?".
  3. Later, choose the state under States and click Restore. Every layer's settings and the current layer come back in one undo step.

A state stores each layer's on, freeze, lock and plot settings, colour, linetype, lineweight and transparency, and the current layer. Layers deleted since the state was saved are listed when you restore it; layers added since are left alone.

Steps: make a layer filter

  1. In the Layers panel, open Filters.
  2. Choose New property filter… and type a name pattern, or select some layers and choose New group filter from selected layers… for a fixed list.
  3. Choose the filter in the list above the table. The panel shows "N of M layers shown (filter NAME)". Choose All layers to see every layer again.

Name patterns

Character Matches
* Any characters, including none
? Any one character
# Any one digit
, Separates alternatives
~ Excludes what follows

Example: A-*,~*TEXT lists every layer starting with A- except those ending in TEXT.

Nesting filters

Commands

Command Options
-LAYERSTATE (-LAS) Save, Restore, Delete, List
-LAYERFILTER (-LFILTER) Property (name pattern), Group (layer names), Nest (the filter, then the filter to put it in, or * for the top level), Delete, List

Example

Save a state Survey only with every layer frozen except SURVEY-*. Save another, Full, with everything on. Switch between them with Restore while you work, and make a property filter SURVEY-* so the panel lists only the survey layers.

Tips and common mistakes

Troubleshooting

Message or symptom What it means and what to do
"Choose a filter in the list above the table first." Show a filter before moving or deleting it.
"Not in the drawing any more: ..." These layers were deleted after the state was saved; the rest were restored.

Related

Related

Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.