Category: Tekla API
-
How to Debug a Tekla Plugin Without Restarting Visual Studio (Tekla Open API Tutorial)
To my surprise, debugging is not a trivial exercise. Please watch the video to guide you on where to click etc. Source code – github repository of the tekla beam plugin. You need to follow the instructions listed here: https://developer.tekla.com/tekla-structures/documentation/debug-plugin-without-restarting-tekla-structures with the following notes and amendments: Add “set XS_PLUGIN_DEVELOPER_MODE=true” to the teklastructures.ini file and open…
-
How to Get Drawing Revision Numbers
Couldn’t do it, because it’s not exposed. This is a hack that I used to circumvent:
-
Tekla API – how to select model objects via a picker
Pretty simple: just selects a simple model object
-
Exploring a New Approach to Copying Objects in Tekla
copy to another Object in Tekla Normally in Tekla, if we want to copy objects or components from one object to another, we have to follow these steps : Select the objects and components you want to copy. Execute the “Copy to Another Object” command. Choose the source object. Select the destination…
-
Tek1 – Tekla Tools
Dimension Bolts Set up Instructions Source code (sorry folks it’s a private repository). Download program here. Only works for: Tekla version: 19.1i Run Installer. SmartScreen may warn you about this program – by pass SmartScreen. Instructions: Only dimensions horizontally and vertically. This means if you use some crazy views / angles it won’t work –…
-
How to Get Bolt Information From A Tekla Part (Tekla Open API)
Given a Tekla Part (regardless of how it was obtained, we want to obtain the bolt information. We can do so as follows (see the hello world example):
-
How to programmatically create bolt list reports from selected model objects (Tekla Open API)
Reports can be generated fairly easily, manually. But how do you do it programmatically using the Tekla Open API? Please see below for a code sample: Programmatically Extracting Report Values Now, if you want to generate the values programmatically, in memory, and then process them somehow into an excel output, consider the following code sample…
-
How to Create a Curved Beam using the Tekla Open API (c#)
The key to this is to specify a chamfer value, and at least three points using the PolyBeam class. You must also provide a profile type that Tekla understands – otherwise you’ll get a bunch of straight lines. Here’s some basic code to get you started: You should be able to easily import, into Tekla,…