# SETBYLAYERMODE System Variable [GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [System Variables](Help%20System/GSTARCAD/2022/System%20Variables/(System%20Variables).md) → [S](Help%20System/GSTARCAD/2022/System%20Variables/S/(S).md) **Function Description:** The SETBYLAYERMODE system variable is used to control which property are selected for SETBLAYER command. | | | | --- | --- | | Type | Integer | | Saved in | Registry | | Initial value | 255 | | Range | 0,1,2,4,8,16,32,64,128 | The setting is stored as a bitcode using the sum of listed system variable values. **System Variable Value:** **0:** none **1:** color property **2:** linetype property **4:** lineweight property **8:** material property **16:** plot style property **32:**plot style property **64:**change "ByBlock" to be "Bylayer" including blocks **128:**change "ByBlock" to be "Bylayer" including blocks ## Other versions with matching text [GstarCAD 2016](../../../2016/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md) · [GstarCAD 2017](Help%20System/GSTARCAD/2017/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md) · [GstarCAD 2018](../../../2018/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md) · [GstarCAD 2019](Help%20System/GSTARCAD/2019/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md) · [GstarCAD 2020](../../../2020/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/System%20Variables/S/SETBYLAYERMODE%20System%20Variable--b6dae9fcacfd.md)