Method SaveAs
SaveAs(string, string)
Saves the drawing to a file, which it is known by from then on.
public void SaveAs(string path, string version = null)
Parameters
pathstringThe path; a name ending in .dwg is written as a DWG, any other as a DXF.
versionstringThe version of the file, as
AC1024for AutoCAD 2010; null for the drawing's own.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- CadRemoteException
Thrown when the drawing is closed, or the file cannot be written or is open as another drawing.