Skip to content

Instantly share code, notes, and snippets.

@benkoshy
Last active May 30, 2026 07:09
Show Gist options
  • Select an option

  • Save benkoshy/3f0af4b1f65164284c85133af4dc8abb to your computer and use it in GitHub Desktop.

Select an option

Save benkoshy/3f0af4b1f65164284c85133af4dc8abb to your computer and use it in GitHub Desktop.
Tekla Open API - hello world application

A hello world program.

Ensure you have the Australasia environment loaded. Or otherwise change the profile string to a profile in your environment

Model model =  new Model();

if (model.GetConnectionStatus())
{
    Beam beam = new Beam();
    beam.StartPoint = new Point(0, 0, 0);
    beam.EndPoint = new Point(1000, 0, 0);
    beam.Profile.ProfileString = "UB150*14"; // make sure this is available in your environment.
    beam.Finish = "PAINT";

    beam.Insert();


    model.CommitChanges();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment