# SETBYLAYER Command
[GstarCAD 2027](Help%20System/GSTARCAD/2027/Index.md) → [Commands](Help%20System/GSTARCAD/2027/Commands/(Commands).md) → [S](Help%20System/GSTARCAD/2027/Commands/S/(S).md)
## Function Description:
This command is used to change the property overrides of selected objects to ByLayer.
## Command Access:
> **Icon:** 
> **Menu:** Modify > Change to ByLayer
> **Ribbon:** Home > Modify > Change to ByLayer
> **Toolbar:** /
> **Command:** SETBYLAYER
> **Alias:** /
## Command Prompts:
The following prompts are displayed. They differ, depending on whether objects are selected before you start the command.
**If no objects are selected, the following prompt is displayed.**
```
Select objects or [Settings]:
```
## Select objects
Specifies which object should inherit layer properties.
## Settings
Displays the SetByLayer Settings dialog box, in which you can specify which object properties are set to ByLayer.

**If objects are selected, the following prompt is displayed.**
```
Change ByBlock to ByLayer? [Yes/No] <Yes>:
```
```
Include blocks? [Yes/No] <Yes>:
```

---
**Related References:**
- [Commands about Object Properties (GstarCAD 2026)](../../../2026/Commands/00%20Command%20Groups/Commands%20about%20Object%20Properties.md)
```
```
```
```
---
[Original help](https://www.gstarcad.net/help/GstarCAD_2027_en-US/detail/commandReferences_S/SETBYLAYER.html) · © Gstarsoft Co., Ltd.