TeklaP POpen API
Developer's Guide
Contents
Introduction
What is Tekla Open API?
Where to utilize the Tekla Open API?
Automate routine tasks
Integrate Tekla Structures into your own process, workflow, and software
Develop additional functionality to extend and enhance Tekla Structures
Where to find support?
Open API discussion forum
About Assemblies
Introduction
Common principles
Tekla.Structures.dll
Tekla.Structures.Model.dll
Tekla.Structures.Drawings.dll
Tekla.Structures.Plugins.dll
Tekla.Structures.Analysis.dll
Tekla.Structures.Catalogs.dll
Tekla.Structures.Datatype.dll
Tekla.Structures.Dialog.dll
Applications
Introduction
Getting started
Example: ask user to pick objects
Example: go through objects in the model or a drawing
ApplicationFormBase
Plug-ins
Introduction
Basic steps for creating a plug-in
Model plug-ins
Mandatory fields in the model plug-in
Dialog design with Windows Forms
Class definition
Naming the plug-in
Data connections
Passing Data
AttributeName
AttributeTypeName
BindPropertyName
IsFilter
Default values
Limitation
Dialog design with INP
Naming the plug-in
Adding a thumbnail image
Special notices and reminders
A step-by-step example
Drawing plug-ins
Mandatory fields in the drawing plug-in
Dialog design with Windows Forms
StructuresData
Constructor
DefineInput()
Run(List inputs)
Adding a drawing plug-in to Tekla Structures
A step-by-step example
Notes for using Tekla Open API
TransformationPlane class
MatrixFactory class
CoordinateSystem class
Point class
Offset class
Picker class
Solid class
Handling exceptions in applications/plugins
User Interface Controls
Catalog custom controls
BoltCatalog
ComponentCatalog
Localization of strings
Localization of plug-in name in Component Catalog
Localization of plug-in or application strings
Editing
Multiple lines
Microsoft Word and ellipsis
Step-by-step instructions
Message box localization