Method ModelViewsOf
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
drawingFilestringThe 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.