Category: Tekla API
- 
		 Tekla Open API: How to access a Tekla Model Object from the Equivalent Object in a Drawing?The trick is to use to the drawing’s “PartIdentifier” to select the relevant object in the model space. Once you’ve done that, you can query the model object for whatever you want. Here is a code sample I’ve extracted from one of our Tekla API Applications. The basic steps: SinglePartDrawing singlePartDrawing = (SinglePartDrawing)drawing;Tekla.Structures.Model.ModelObject modelObject =… 
- 
		
		
		QR Code on DrawingsWe are now placing smart QR codes on drawings. Why? What benefit is accrued by doing so? Instructions on how to make it work Rules – To prevent obsolete data from being used or shown Updating the Drawings: Setting up the template 
- 
		
		
		Precast Panels with Tekla StructuresThis is probably first precast project we have attempted with tekla structures as the tool. We have done a few with Revit, and lot with Autocad. There is raging argument with no one really know (unless one has walked in the weeds) which is a better tool I believe no tool as out of the… 
- 
		 Why aren’t the user defined attributes being defined – in Tekla’s “Open” APIIf 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 APIOur 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… 

