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
- Any paid licence for changes. A drawing open, with the Layers panel shown (Home > Layers > Layer panel).
Steps: save and restore a layer state
- Set the layers as you want them (on, frozen, locked, plotting, colours and so on).
- 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?". - 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
- In the Layers panel, open Filters.
- 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.
- 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
- Move shown filter into puts the filter that is shown inside another filter. A nested filter shows only what the one above it shows, and it is listed indented under it.
- Top level takes it out again.
- Delete shown filter removes it; filters nested in it move up one level.
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
- Restoring a state is one undo step, so Ctrl+Z takes you straight back.
- Renaming a layer updates the states and group filters that use it.
- A group filter keeps the layers you chose even if their names change; a property filter follows its pattern.
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
- Fitting an object into a space
- Grid, snap, ortho and polar tracking
- Object snaps and object snap tracking
- Entering exact points, distances and angles
- Constraint hints while drawing
- Drawing lines
Still stuck? Open a support ticket or use Help, then Contact support in Stratal CAD.