ViewCreateModelView Method |
Generates a new model view on the sheet of the given active drawing using given model view id.
Namespace: Tekla.Structures.Drawing
Assembly: Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2026.0.0-alpha00057080+93cd22c410a086ecc356b7088d4daaf2e12907eb
public static bool CreateModelView( Drawing drawing, int modelViewId, bool useDrawingAttributes, out View view )
Parameters
- drawing
- Type: Tekla.Structures.DrawingDrawing
The active drawing in which to create the view. - modelViewId
- Type: SystemInt32
The model view id. - useDrawingAttributes
- Type: SystemBoolean
True if the drawing level attributes should be used. - view
- Type: Tekla.Structures.DrawingView
The created view is returned if the creation was successful. Otherwise, null is returned.
Return Value
Type: BooleanTrue if the view was created successfully.
| Exception | Condition |
|---|---|
| TeklaStructuresDrawingsApplicationException | Thrown if an unknown error occurrs. |