Code example: Split polygon weld into segments
This Tekla Open API code example splits an existing polygon weld into its segments.
Split Polygon Weld is an example application showing how to use Picker class to pick the weld and how to handle the weld points in order to implement the splitting. Example uses also the method Operation.CopyObject.
After downloading the TSOpenAPIExamples package from GitHub (button above), find SplitPolygonWeld example at \Model\Applications\SplitPolygonWeld.
Split polygon weld application
Test the example application
You can test the application in Tekla Structures as follows:
- In Tekla Structures, open a model that contains polygon welds.
- Open an build SplitPolygonWeld.csproj In Microsoft Visual Studio to create the application file. The file is located at \Examples\Model\Applications\SplitPolygonWeld.
- Run the application SplitPolygonWeld.exe located at Examples\Model\Applications\SplitPolygonWeld\bin\Debug.
- Click Split polygon weld and select polygon weld in model view.