Code example: Create user defined custom beam
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.