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.

DrawingHandler Methods

The DrawingHandler type exposes the following members.

Methods
  Name Description
Public method CloseActiveDrawing
Closes the drawing editor.
Public method CloseActiveDrawing(Boolean)
Closes the drawing editor.
Public method GetActiveDrawing
Returns an instance of the active drawing that is currently open in Tekla Structures.
Public method GetConnectionStatus
Returns true if a proper connection to the Tekla Structures process has been established. A proper connection to Tekla Stuctures in the drawing API needs Tekla Structures up and running and a model open. If, for some reason, the connection has been lost, the method will return false. Currently, there's no way to re-establish the connection.
Public method GetDrawingObjectSelector
Gets a drawing object selector. With a drawing object selector drawing objects can be selected and highlighted in the drawing editor. A drawing object selector also provides a list of currently selected drawing objects.
Public method GetDrawings
Gets all the drawings from the database.
Public method GetDrawingSelector
Gets a drawing selector. With a drawing selector the list of selected drawings can be gotten.
Public methodStatic member GetMessageExecutionStatus Obsolete.
Gets the current message execution mode for the application.
Public method GetModelObjectIdentifiers
Gets model object identifiers of the drawing.
Public method GetPicker
Gets a picker for picking points and objects in a drawing.
Public method IssueDrawing
Issues the drawing if the drawing is not issued or was previously issued but has been modified since. This is the same as pressing Issue on the drawing list for a selected drawing.
Public method PrintDrawing(Drawing, DPMPrinterAttributes)
Prints the drawing using the given printer attributes.
Public method PrintDrawing(Drawing, PrintAttributes)
Prints the drawing using the given printer instance. NOTE! The drawing cannot be active, otherwise printing fails.
Public method PrintDrawing(Drawing, DPMPrinterAttributes, String)
Prints the drawing to file using the given printer attributes and name of the output file. The given output file overrides the printer attributes file settings.
Public method PrintDrawing(Drawing, PrintAttributes, String)
Prints the drawing to file using the given printer instance. NOTE! The drawing cannot be active, otherwise printing fails.
Public method PrintDrawings
Prints the list of drawings using the given printer attributes.
Public method SaveActiveDrawing
Saves the currently open drawing.
Public method SetActiveDrawing(Drawing)
Sets the active drawing that is currently open in Tekla Structures.
Public method SetActiveDrawing(Drawing, Boolean)
Sets the active drawing that is currently open in Tekla Structures.
Public methodStatic member SetMessageExecutionStatus Obsolete.
Sets the message execution mode for the application.
Public method UnissueDrawing
Unissues the drawing. This is the same as pressing Unissue on the drawing list for a selected drawing.
Public method UpdateDrawing
Updates the drawing. This is the same as pressing Update on the drawing list for a selected drawing. NOTE! The drawing cannot be active, otherwise the operation fails. NOTE! Numbering must be executed before this operation.
Top
See Also