Tekla Open API

Detailed and full API reference helps you master Tekla Open API

This is the most recent version of Tekla Open API.
For older versions, please visit Tekla Warehouse.

DrawingHandlerSetActiveDrawing Method (Drawing, Boolean)

[This is preliminary documentation and is subject to change.]

Sets the active drawing that is currently open in Tekla Structures.

Namespace:  Tekla.Structures.Drawing
Assembly:  Tekla.Structures.Drawing (in Tekla.Structures.Drawing.dll) Version: 2019.0.0.0 (2019.0.0.0)
public bool SetActiveDrawing(
	Drawing drawing,
	bool showDrawing


Type: Tekla.Structures.DrawingDrawing
The drawing to be set as the active drawing.
Type: SystemBoolean
Whether to open the drawing as visible or in the background (faster).

Return Value

Type: Boolean
True on success.
Exception Condition
CannotPerformOperationDrawingNotUpToDateException Thrown if the drawing is not up to date.
See Also