DWGNAME system variable
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.