Table of Contents

Method AddView

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

AddView(string, string, CadDrawingReference, CadViewCategory)

Adds a sheet view, at the end.

public CadSheetView AddView(string number, string title, CadDrawingReference namedView, CadViewCategory category)

Parameters

number string

The view number.

title string

The view title.

namedView CadDrawingReference

The named view of the drawing it shows, or null for none.

category CadViewCategory

The 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>).