Category: Tekla API
-
Why aren’t the user defined attributes being defined – in Tekla’s “Open” API
If you want to waste time on a poorly documented API (which doesn’t make any sense) I would highly recommend getting on Tekla. I’m documenting this so some poor soul doesn’t waste a day trying to debug this: Do you see the problem? First insert the beam, and then apply the UDA and it should…
-
How to check if you have a legitimate Tekla Profile using the Tekla Open API
Our use case? How can we check? Voila! Now it’s hard to make a mistake. If you want to get all materials – it’s very similar to the above. Use the CatalogHandler.GetMaterialItems() method along with the materialItem.MaterialName property. The code to actually do that – I will leave as an exercise to the reader.
-
How to Get Tekla Model Objects if selected by Users (Tekla API)
A user has pre-selected a set of model objects. We need to retrieve them via the API. How do we do it? All of our code is extracted from our production apps.
-
ByCoordinateSystems (i.e. the Tekla API method)? AlignCoordinateSystem (the AutoCAD .net API method)? What are they? What do they mean?
What problem does it solve? I have some treasure, buried somewhere. I know how to get there from my town. This is great from my current location. But how will you get there from YOUR location? Without changing the location of the treasure, I can tell you how to get there, from your location by…
-
How to programmatically filter model objects, in a Tekla model, by Part Position? (Tekla API)
Suppose you have a Tekla model and you want to programmatically filter for parts with a revision mark of abc/1. How would you do that? When I originally tried the code, I had a single Binary Filter expression for just the part Position Number. I made a fatal mistake – I had assumed that Tekla…
-
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…