# SETBYLAYER Command [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [Commands](Help%20System/GSTARCAD/2022/Commands/(Commands).md) → [S](Help%20System/GSTARCAD/2022/Commands/S/(S).md) ## Function Description: This command is used to change the property overrides of selected objects to ByLayer. ## Command Access: > **Icon:** > ![](GCADICO_LAYER_BYLAYER.png) > **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. ![](SETBYLAYER-1.jpg) **If objects are selected, the following prompt is displayed.** Change ByBlock to ByLayer? \[Yes/No\] \<Yes\>: Include blocks? \[Yes/No\] \<Yes\>: ![](SETBYLAYER-2.jpg)