Table of Contents

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

path string

The drawing's file.

problem string

Why nothing was added: Drawing not found or Drawing 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.