Method AddLayout
- Namespace
- OpenCAD2D
- Assembly
- OpenCAD2D.Core.dll
AddLayout(string, string, string)
Adds one layout (or the Model) of a drawing file under a name of the caller's, as a sheet set's sheet is listed. The sheet is added whatever happens to the drawing: where the file is not there, cannot be read or has no such layout, its Status says so and Plan(IEnumerable<string>) passes it over. The drawing that is open is used as it stands, any other is read from its file, once for all its sheets.
public CadPublishSheet AddLayout(string path, string layoutName, string name)
Parameters
pathstringThe drawing's file.
layoutNamestringThe layout's name, or
Model.namestringThe name in the list (
A-101 Ground floor plan); another sheet's name already in the list makes itA-101 Ground floor plan (2).
Returns
- CadPublishSheet
The sheet, last in the list.
Exceptions
- ArgumentNullException
Thrown when an argument is null.