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. […]
Write Selected Beam Members to an Excel File (Tekla Open API – Tutorial)
What is the task at hand? The user selects some beams. We then want to collate the following information into various Excel spreadsheets: Name Profile Length and finally Weight We want two views: the first aggregates the beams by their name and finish, and the second merely lists all the beams selected with the information […]
Extracting Bolt Distances of Single Part Drawings (Beams) With an Output In Excel – Part 3 (Tekla Open API)
In the last part we left off having obtained all the bolt distance and placing them in a domain object. In this instalment we will try to export all that data into an Excel Spreadsheet. Please note that the following code is untested – unfortunately there was a lightening storm in Melbourne which short circuited […]
How to Programmatically Select Objects in the Model (Tekla Open API)
Background: What are we trying to do? We have programmatically identified some model objects that we want to select in the model – to attract attention to the user and to allow her to easily identify all such objects. In this particular case we will be creating some beams. And then, we will select those […]
How to programmatically insert Reference Models into Tekla (Tekla Open API)
Wouldn’t it be handy if we could programmatically insert reference models into Tekla? Well you can now do so quite easily. Here is the code which does the hard work. (You will of course add the appropriate references and directives): And if you want to see a video demonstration, here it is: Inserting XRefs into […]
How to Set Up a Tekla API Project (Tekla API Application)
The object of a Tekla Application is to ensure that things go smoothly on the construction site. You can see the organised chaos that is here. Avoid the real chaos. Plan ahead. For the newbie this post shows how to set up a Tekla Project. Let us assume that you are creating a WPF desktop […]
Showing an Assembly in the Model via a Tekla Drawing (Part II) Tekla Open API + Code snippets
We are revisiting a post I made earlier. Here’s the problem. You are viewing a Tekla drawing. But you have no idea what you are looking at, or where it is. This macro will take you to that very assembly in the model. It’s actually quite handy. And here is the previous post where I […]
Tekla Plug-in #1: Multi Drawing Selector
Multi drawing Selector for Tekla drawings The Multi Drawing Selector Application is a program helps collate the single part drawings of all parts (with the same profile) into a single multi sheet drawing. If I have a certain profile of flatbar: say 90×10 then wouldn’t it be handy if I had all such flatbars (with […]