# DWGNAME System Variable
[GstarCAD 2022](Help%20System/GSTARCAD/2022/Index.md) → [System Variables](Help%20System/GSTARCAD/2022/System%20Variables/(System%20Variables).md) → [D](Help%20System/GSTARCAD/2022/System%20Variables/D/(D).md)
**Function Description:**
The DWGNAME system variable is used to store the current drawing name.
(Ready-Only)
| | |
| --- | --- |
| Type | Strings |
| Saved in | Not saved |
| Initial value | Drawing1.dwg |
If the new drawing unsaved, the default value of DWGNAME is "Drawing1.dwg", other new drawing names are "Drawing2.dwg", "Drawing3.dwg", and so on,
For saved drawing, the location for drawing file is stored in DWGPREFIX.
## Other versions with matching text
[GstarCAD 2016](../../../2016/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md) · [GstarCAD 2017](Help%20System/GSTARCAD/2017/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md) · [GstarCAD 2018](../../../2018/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md) · [GstarCAD 2019](../../../2019/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md) · [GstarCAD 2020](../../../2020/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md) · [GstarCAD 2021](Help%20System/GSTARCAD/2021/System%20Variables/D/DWGNAME%20System%20Variable--6ce5444dda4c.md)