Code example: Create user defined custom beam

Updated: 13 May 2019

This Tekla Structures example plug-in creates a custom beam defined by user input using CustomPartBase class.

User can select the profile and a length factor for the beam. The plug-in asks the user to pick two points. Based on those points, it calculates new insertion points using a double parameter from the dialog and creates a tapered beam based on profile parameter.

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

Was this helpful?
The feedback you give here is not visible to other users. We use your comments to improve the content.