Table of Contents

Method SaveAs

Namespace
OpenCAD2D.Remote
Assembly
OpenCAD2D.Remote.dll

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

path string

The path; a name ending in .dwg is written as a DWG, any other as a DXF.

version string

The version of the file, as AC1024 for 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.