Method AddView
AddView(string, string, CadDrawingReference, CadViewCategory)
Adds a sheet view, at the end.
public CadSheetView AddView(string number, string title, CadDrawingReference namedView, CadViewCategory category)
Parameters
numberstringThe view number.
titlestringThe view title.
namedViewCadDrawingReferenceThe named view of the drawing it shows, or null for none.
categoryCadViewCategoryThe view category, one of this sheet set's; null for none.
Returns
- CadSheetView
The new view.
Exceptions
- ArgumentNullException
Thrown when the number or the title is null.
- ArgumentException
Thrown when the category is not one of this sheet set as it is loaded.
- InvalidOperationException
Thrown outside Change(Action<CadSheetSet>).