Repository navigation
LAYER Command
Lists the drawing's layers on the command line, or changes layers with a typed subcommand such as LAYER NEW <name>.
| Command | -LAYER |
| Web app | Available |
| Since | 0.1.3 |
LAYER works on the command line. To open the Layer Manager palette, use LAYERS.
- Type
LAYERand press Enter. - The command line lists every layer with its state: on, off, frozen or locked.
To change layers, type a subcommand after LAYER, for example LAYER FREEZE Walls Doors.
| Option | What it does |
|---|---|
List (LIST or ?) |
Lists every layer with its state. Same as LAYER on its own. |
New (NEW or N) <name>
|
Creates a new layer. Reports an error if the name is already used. |
On (ON) <names>
|
Turns the named layers on and thaws them. |
Off (OFF) <names>
|
Turns the named layers off. |
Freeze (FREEZE or FR) <names>
|
Freezes the named layers. |
Thaw (THAW or TH) <names>
|
Thaws the named layers. |
Lock (LOCK or LO) <names>
|
Locks the named layers. |
Unlock (UNLOCK or UL) <names>
|
Unlocks the named layers. |
Color (COLOR or C) <name> <number>
|
Sets the color of one layer to a color number. |
Set (SET, S or CURRENT) <name>
|
Makes the named layer current. |
-LAYER asks for everything at the command line and never opens a dialog, so it suits scripts. It asks for an option, then for the values that option needs, and then asks for the next option. Press Enter on an empty option prompt to finish.
- Enter an option:
?,Make,Set,New,Rename,ON,OFF,Color,Ltype,LWeight,TRansparency,Description,MATerial,Plot,Pstyle,Freeze,Thaw,LOckorUnlock. - Answer the prompts for that option.
- Enter the next option, or press Enter to finish.
| Option | What it asks |
|---|---|
| ? | Layer names to list (default *). |
| Make | A name. The layer is created if needed and becomes the current layer. |
| Set | The name of an existing layer to make current. |
| New | A list of names for new layers. |
| Rename | The old name, then the new name. |
| Color | A color name or number (1-255), then the layers to change. |
| Ltype | A loaded linetype name (default Continuous), then the layers. |
| LWeight | A lineweight from 0.0mm to 2.11mm, then the layers. |
| TRansparency | A value from 0 to 100, then the layers. |
| Description | A description text, then the layers. |
| MATerial | A material name (default ByLayer), then the layers. |
| Plot | Plot or No plot, then the layers. |
| Pstyle | A plot style name (default Normal), then the layers. |
| ON / OFF / Freeze / Thaw / LOck / Unlock | The layers to change. |
The answers can also follow the command on one line, for example -LAYER M WALLS C 1 WALLS.
- In
-LAYER, a layer list can hold several names separated by commas, and wildcards such asA*. When it asks for a layer list, Enter uses the current layer. -
-LAYERwill not freeze the current layer. It reports this and changes the other layers in the list. - An invalid color, lineweight or transparency value is refused, and the prompt asks again.
- Layer changes can be undone.
LAYERS · LAYERSTATE · LAYMCUR · RENAME · PURGE
Open CAD Studio is free software under the GPL-3.0 licence · Source code · Download · Web app · Discussions
Get started
- Installation
- Your First Drawing
- Tutorials
- The User Interface
- Ribbon Reference
- Workspaces and Toolbars
- Navigating the Drawing
Draw and edit
- Drawing Setup and Units
- Precision Drawing
- Isometric Drafting
- Drawing Objects
- Multilines
- Selecting Objects
- Modifying Objects
- Hatches and Fills
- Layers and Properties
Annotate
Organise and reuse
Present and share
3D
Tools
Reference