How to Set Up a Tekla API Project (Tekla API Application)

Work faster with the Tekla API

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 Application. You could also just as easily create a console application – I often do this if I simply want a quick and dirty way to test code.

  1. Go to Visual Studio.
  2. Create a new WPF project.

Follow this gif:

Setting up a Tekla Project
How to Set up a Tekla WPF Application
  1. Next you need to add references to Tekla DLLs. They are contained at this location on my PC. C:\Program Files\Tekla Structures\19.1\nt\bin\plugins\ .They may be in a different version on yours. You can also download these dlls using Nuget in your Visual Studio.
  2. If you are using 19.1i version – then you can download Trimble’s nuget package named thus: 2019.1.50434

Follow this Gif:

Adding Tekla References

Shows how to add references to a Tekla API WPF Project.

  1. The fourth and final step is to add directives and to then get coding.

Some common directives and aliases that I use:

I hope this post helps you!


Comments

5 responses to “How to Set Up a Tekla API Project (Tekla API Application)”

Leave a Reply

Your email address will not be published. Required fields are marked *