Tag: 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 =…
-

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 Get Drawing Revision Numbers
Couldn’t do it, because it’s not exposed. This is a hack that I used to circumvent:
-
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 Instructions: Trouble shooting: it doesn’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):
-
Refactoring the Code – Printing Selected Beams to Excel – Part 3 – (Tekla Open API)
Let us now continue to refactor according to good design principles.
-
Refactoring the Code – Printing Selected Beams to Excel – Part 1 – (Tekla Open API)
We will attempt to do something which is seldom done or discussed in Tekla code samples: and that is the very important issue of refactoring code. 1. Start with Tests. The first thing you need is a good suite of tests. That way you will know whether something has gone wrong or not.…
