# CMATERIAL System Variable
[GstarCAD 2020](Help%20System/GSTARCAD/2020/Index.md) → [System Variables](Help%20System/GSTARCAD/2020/System%20Variables/(System%20Variables).md) → [C](Help%20System/GSTARCAD/2020/System%20Variables/C/(C).md)
**Function Description:**
The CMATERIAL system variable is used to set material for new objects.
<table><tbody><tr>
<th>Type </th>
<td><p>Strings </p></td>
</tr>
<tr>
<th>Saved in </th>
<td><p>Drawing </p></td>
</tr>
<tr>
<th>Initial value </th>
<td><p>BYLAYER</p></td>
</tr>
<tr>
</tr>
</tbody></table>
The valid value could be BYLAYER, BYBLOCK, and material names in drawing.
---
## Other versions with matching text
[GstarCAD 2016](../../../2016/System%20Variables/C/CMATERIAL%20System%20Variable--f95f4c2cec81.md) · [GstarCAD 2017](../../../2017/System%20Variables/C/CMATERIAL%20System%20Variable--f95f4c2cec81.md) · [GstarCAD 2018](../../../2018/System%20Variables/C/CMATERIAL%20System%20Variable--f95f4c2cec81.md) · [GstarCAD 2019](../../../2019/System%20Variables/C/CMATERIAL%20System%20Variable--f95f4c2cec81.md) · [GstarCAD 2021](../../../2021/System%20Variables/C/CMATERIAL%20System%20Variable--f95f4c2cec81.md)