Table of Contents

Method ModelViewsOf

Namespace
OpenCAD2D.SheetSets
Assembly
OpenCAD2D.Core.dll

ModelViewsOf(string)

Reads the named views of model space of a drawing (those saved in a layout are left out), in the order of their names (letters of either case alike first, then ordinal). The drawing is read and not kept open.

public static IReadOnlyList<CadModelView> ModelViewsOf(string drawingFile)

Parameters

drawingFile string

The drawing.

Returns

IReadOnlyList<CadModelView>

The views; none for a drawing that has none.

Exceptions

ArgumentNullException

Thrown when the file is null.

IOException

Thrown when the file cannot be read.

FormatException

Thrown when the file is a drawing that cannot be read.