# CMATERIAL System Variable [GstarCAD 2026](Help%20System/GSTARCAD/2026/Index.md) → [System Variables](Help%20System/GSTARCAD/2026/System%20Variables/(System%20Variables).md) **Function Description:** The CMATERIAL system variable is used to set material for new objects. | | | | --- | --- | | Type | Strings | | Saved in | Drawing | | Initial value | BYLAYER | | The valid value can be BYLAYER, BYBLOCK, and material names in drawing. --- [Original help](https://www.gstarcad.net/help/GstarCAD_2026_en-US/detail/systemVariables/CMATERIAL.html) · © Gstarsoft Co., Ltd.