0% found this document useful (0 votes)
6 views

2 - Introduction - Model API

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views

2 - Introduction - Model API

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 9

Tekla Structures Open API

Model API

17 Tekla Open API: Overview & Getting Started


Tekla Open API - Model
Macro
API

§ Model API Model


API
Tekla
Structures
Drawing
API

– Connect to a running Tekla Structures model


– Create, modify, and delete model objects Plug-in
API
§ Read and write object attributes
§ Read and write user defined attributes
§ Get report properties for objects
– Interact with the user
§ Get currently selected objects
§ Prompt user to pick objects and locations
§ Select and highlight objects for the user
– Access catalogs (material, bolt, profile, etc.)
– Create and manipulate model views

18 10/9/2017
Structure of the Model API

19 Tekla Open API: Overview & Getting Started


Macro

Model API – Sample program


API

using System;
using Tekla.Structures.Model; Model Tekla Drawing
API Structures API
using Tekla.Structures.Geometry3d;
namespace ConsoleApplication1
{
class Program Plug-in
API
{
static void Main(string[] args)
{
Model myModel = new Model();
Beam myBeam = new Beam();
myBeam.StartPoint = new Point( 0.0, 0.0, 0.0);
myBeam.EndPoint = new Point( 1000.0, 0.0, 0.0);
myBeam.Profile.ProfileString = "L45*45*9";
myBeam.Insert();
myModel.CommitChanges();
}
}
}

20 10/9/2017
RFI Manager
§ Manage RFI’s and link them with the model.
– Link to IFC reference model objects as well as native objects
– Colorize model based of RFI status
– Automatically check for overdue status
– Publish to HTML or FTP site or zip up and email

21 Tekla Open API: Overview & Getting Started


Construction Sequencer
§ Define erection order
§ Create reports and animations

22 Tekla Open API: Overview & Getting Started


Data Exchanger

23 Tekla Open API: Overview & Getting Started


Compare Objects
§ Deep object comparison
§ Compare and highlight

24 Tekla Open API: Overview & Getting Started

You might also like