Method AddSheet
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
numberstringThe sheet number, free text ("A-101"); empty for none.
titlestringThe sheet title.
layoutCadDrawingReferenceThe drawing and layout the sheet is, or null where the sheet has none yet.
indexintThe 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>).