Code example: Plug-in that creates a beam defined by user input
This Tekla Open API example plug-in creates a beam defined by user input.
User can select in plugin user interface the profile name and a length factor for the beam. When selected in the component catalog, the plugin asks the user to pick two points. Based on those points, it calculates new insertion points using a double parameter, length factor, from the dialog and creates a beam with the profile value set in the Profile Name textbox of plugin dialog.
The same example is found in the API Reference PluginBase section implemented using a .inp file to define the dialog.
After downloading the TSOpenAPIExamples package from GitHub (button above), find BeamPlugin example at \Model\Plugins\BeamPlugin.