Category: Tekla API

A series of blog posts exploring the Tekla API.  Code examples, explanations and (where relevant) videos will be provided.

  • 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, any curved Beam you want. The principal requirements are: (i) start point, (ii) end point, and (iii) also rotation. Start point and end point and centre point – this will not do: you will also need a third vector if you are going down this route, and I feel that it needlessly complicated. This can be obtained via any any means: CSV files, or directly with Rhino APIs (this might require programming in both Tekla and Rhino).

    It is best to control your data source

    If you read our past blogs re: CSV files – everything is contingent on how it is obtained. If you have rubbish in, you get rubbish out. We worked extensively with a party on the Westgate Tunnel, who promised .CSV files, but then provided me with corrupt and inaccurate data points, and did not provide the data in the agreed upon format. This makes for headaches and recriminations — and ultimately dissatisfied customers — but what can you do if they provide you with rubbish data that you cannot verify? So if you’re going down the CSV file route — then you need to know how the CSV files are being produced, and that there are not mistakes in them: e.g. missing columns, nonsensical data values, and that they are being produced programmatically etc. or at the very least have excellent lines of communication with your client to resolve these types of issues. Controlling the data source obviates these problems.

    Or another problem I faced – you’ve agreed on CSV files, but the format changes each time an update happens. Someone changes the name of a column header – or they give you a file with irrelevant stuff in there. Every time you have to manually edit something, you’re introducing the possibility of errors. All of this can be solved by controlling the data source.

    The Devil is in the Details

    Again, as with most things, they seem simple at first but the devil is in the details: you gotta tackle the problem of rotation and also profile mapping and weird gotchas in Tekla – that are not documented. Then another important thing to manage:

    Revisions and changes

    How are you gonna manage this? How are you going to document variation hours? Likely you might have to add IDs to each member. This will have to be incorporated into CSV files from the outset. Or if you have the Rhino model in hand — then you could just see what has been changed programmatically: (i) are they IDs all the same, and (ii) if so, have they been moved. Now this will entail persistence of an old model to be compared with a new model, and a form of documenting these changes. This takes extra time, extra programming, and extra documentation management.

    By Ben Koshy

  • Tekla Custom Component Primer

    Part 1 of the custom component take you through the following items.

    1. Defining parameters
    2. Setting Create option in the Component tree
    If you want the model please submit the form below. We will email you the dropbox download link
  • Rhino Tekla Interop

    Here is a demo on how a Rhino model can be brought into Tekla

  • Modelling Complex Contour Plates using the Tekla Open API

    How to create custom Contour Plates using the Tekla Open API from Tek1 on Vimeo.

    Manually creating contour plates from CSV file inputs will likely be disastrous. You’ll inevitably make mistakes and things won’t fit on site: it will be an uphill battle. You can obviate these issues by using the Tekla Open API to solve a lot of those problems.

    See the video associated with this post for a demostration of our capabilities using the Tekla Open API.

    Full Source Code is here.

    Thank you for passing by!

    Many have been writing for a basic sample: so you may try this below:

  • A Beginners guide to APIs

    Is programming knowledge necessary only for a Software developer? You will find an answer for this question in this blog. With automation ruling the world, it is important for every business to adopt it into their workflows to stay competitive.People may encounter lots of issues and errors in day to day work which may affect the efficiency and productivity. Laborious tasks can be automated using simple tools which can enhance productivity. This is where API comes into action.

    An API (Application Programming Interface) is a set of tools, protocols and methods offered by companies for their commercial software. Some of those companies offering API are Google, Mircrosoft, Autodesk, Tekla and the list goes on. Everyone who are using their software may want to have a customized tool to suit their special requirements. Hence for this purpose the application developers expose some of their core codes for their customers. Now the customers could query, retrive data, set values and do much more.

    How API works.

    A Civil engineer may be working with many software and when he has some knowledge on programming he could develop solutions using these API without hiring a software engineer and explaining all sorts of things to him. When he himself gets to explore the API, various possibilities will come into light and he could develop more productive tools for his business.

    All one needs to get started with API is some basic understanding of the high school computer science concepts on C or C++. Even though they are low level programming language unlike JAVA and C# which is required to work with API the concepts remains the same. JAVA has a lot of scope than C# which is mainly used to develop Microsoft Windows applications. But the selection of which one to learn depends entirely on what your requirement is as each API has been built on its own language. Once you get a fair bit on the language next important thing is the documentation of the API.

    This documentation is available in the websites of the software. It serves as a guide which explains the entire hierarchy of the software, data types, classes, methods etc. One needs to dig into this at the very beginning before accessing the API. Now you could start your coding after acquiring the basic knowledge on these things. Keep in mind that lots of trial and errors will only lead to success for a beginner. You should be continuously learning from the errors arising in the code and working on it further.

    Hope this blog has provided an insight on how important programming could be for people in industries other than IT. Well then get started to learn coding and explore new heights in your business and work.

  • GRASSHOPPER- THE VISUAL PROGRAMMING LINK FOR TEKLA

    Ever wondered how to automate the processes in modeling of steel structures, increase efficiency and accuracy. Grasshopper has got all the answers. Grasshopper is a visual programming interface like the Dynamo we saw in the previous blogs. It is built in within the 3D modeling software called Rhino. Tekla has released a link which enables algorithmic modeling for Tekla Structures using Rhino/Grasshopper. Even the toughest and tiresome models can be easily created using the Grasshopper-Tekla Live Link provided you have a strong visualization capacity and good understanding of the underlying geometry.

    We have tried using it for our jobs and it provides great flexibility to alter the parameters. One of the job we used for is creating a Spiral stair and the process was pretty easy and we got accurate results. Another challenging  job we experimented was the outer framing for cladding panels, along the sides of a bridge which had a tricky geometry. Have a look at these in the following video.

  • .dwg based Take off with custom Plug ins

    Tek1 has developed .dwg based plugins which talk to Tekla to carry out take-off efficiently

    Take off is completed in .dwg based Cad systems very similar to modeling in Tekla. For BIM model the model is converted to Tekla

    Reports can be taken either from .dwg system or Tekla. Right now reports are being taken out of Tekla. Our next effort is to develop a plugin which will convert the .dwg model into an IFC model.

    If anyone is able to help us in this developing the plug int convert .dwg based model to an IFC model we will be very interested.

    Here is a sample file.

    Queens Cliff Estimation Model
    Tak off model

  • Anomalies in the Way Tekla Rotates Beams

    If you are dealing with the Tekla API, you have to watch out for the following gotchas:

     

     

    Anamolies in the way Tekla handles Rotations from Tek1 on Vimeo.

  • Tekla Model Sharing

    Tekla has got model sharing with latest releases. However, nothing like that exists in previous releases.

    Now with API plugin from Tek1 you can share member placements on earlier versions. There is no Lic fees to for model sharing to be paid to Tekla.

    You as the main modeller decide to farm out member placements to external modellers. You give them a log in and assign the project to the external contractor.

    The external contractor models the elements. The modeler selects the elements and users of our API to share the model elements.

    The main modeler then users our API to synchronize the model elements with the main model. The main modeler or the contract modeler can now adjust set outs and RLs on their model and the respective model can be synced with full control (accept or reject sync)

    Update: This API is not available for sale. We thank you for your interest nonetheless.