Method Open
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
Open(string)
Reads a drawing file, a DWG, DWS, DWT or DXF, to browse it; the file is not changed and not kept open.
public static CadDesignCenterDrawing Open(string path)
Parameters
pathstringThe path of the file.
Returns
- CadDesignCenterDrawing
The drawing.
Exceptions
- ArgumentNullException
Thrown when the path is null.
- IOException
Thrown when the file cannot be read.
- FormatException
Thrown when the file is a DWG that cannot be read.
- NotSupportedException
Thrown when the file is a DWG of a version that is not read.