Method AddDrawing
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
AddDrawing(string, out string)
Adds the sheets of a drawing file, as Add Sheets does: the drawing read with the readers of the presenter (a DWG or a DXF), its Model and layouts listed by IncludeModel and IncludeLayouts. The drawing that is open is used as it stands, not read again.
public IReadOnlyList<CadPublishSheet> AddDrawing(string path, out string problem)
Parameters
pathstringThe drawing's file.
problemstringWhy nothing was added:
Drawing not foundorDrawing failed to load: …; null where the drawing was read.
Returns
- IReadOnlyList<CadPublishSheet>
The sheets added, in order; empty where the drawing was not read or all its sheets were listed.
Exceptions
- ArgumentNullException
Thrown when the path is null.