Repository navigation
SETBYLAYER Command
Hakan Seven edited this page Nov 8, 2026
·
1 revision
Resets the color, linetype, lineweight, transparency, material and plot style of selected objects to ByLayer.
| Command |
SETBYLAYER · -SETBYLAYER
|
| Ribbon | Draw tab › Modify panel (slide-out) |
| Web app | Available |
| Since | 0.6.9 |
- Select objects, or type
Sto choose which properties are reset. If you selected objects before you start the command, this step is skipped. - Press Enter to finish the selection.
- Answer Change ByBlock to ByLayer? [Yes/No]. With No, properties set to ByBlock are kept.
- Answer Include blocks? [Yes/No]. With Yes, the objects inside selected block references are reset too.
- The command line reports how many objects were changed.
| Option | What it does |
|---|---|
Settings (S) |
Shows the active properties and lets you turn them on or off. Press Enter to go back to the selection. |
Color (C) |
Turns resetting the color on or off. |
LType (LT) |
Turns resetting the linetype on or off. |
LWeight (LW) |
Turns resetting the lineweight on or off. |
Transparency (T) |
Turns resetting the transparency on or off. |
Material (M) |
Turns resetting the material on or off. |
Yes (Y) / No (N) |
Answers the ByBlock and block questions. Enter keeps the default shown in angle brackets. |
-SETBYLAYER runs the same prompts. Everything is asked at the command line, so both forms suit scripts.
- Your settings and the last Yes/No answers are kept for the next run. They are stored in
SETBYLAYERMODE; you can also type a number from 0 to 255 there. - Plot style is reset as well, unless
SETBYLAYERMODEturns it off. - Objects on locked layers are skipped.
- If nothing needs to change, the command says so and makes no change. Otherwise the change can be undone in one step.
SETBYLAYERMODE · MATCHPROP · CHPROP · PROPERTIES
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