Guides and Articles

Use this documentation when building your Tekla Structures apps

Code example: Insert mark with point info

Updated: 30 Jan 2018

This code example shows how to insert marks to a drawing using Tekla Open API. The plug-in ask the Tekla Structures user to pick two points and inserts a mark to the drawing based on the points. The user can select the color and the angle of the mark.

To use default value of integer and double properties, from drawing plug-in dialogs, it is possible to use empty field or zero value. Because of that, the default value set in plug-in code must be zero as well.

After downloading the TSOpenAPIExamples package from GitHub (button above), find MarkPlugin example at \Drawings\Plugins\MarkPlugin.