Table of Contents

Method AddSheet

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

AddSheet(string, string, CadDrawingReference, int)

Adds a sheet to this group; it is given an empty list of sheet views, as AutoCAD gives one.

public CadSheetSetSheet AddSheet(string number, string title, CadDrawingReference layout, int index = -1)

Parameters

number string

The sheet number, free text ("A-101"); empty for none.

title string

The sheet title.

layout CadDrawingReference

The drawing and layout the sheet is, or null where the sheet has none yet.

index int

The place among the subsets and sheets of this group; -1 for the end.

Returns

CadSheetSetSheet

The new sheet.

Exceptions

ArgumentNullException

Thrown when the number or the title is null.

ArgumentOutOfRangeException

Thrown when the place is not -1 or from 0 to the count of children.

InvalidOperationException

Thrown outside Change(Action<CadSheetSet>).