# razorcx-courses/tekla-examples-2023 architecture

> Architecture diagram of the GitHub repository razorcx-courses/tekla-examples-2023, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/razorcx-courses/tekla-examples-2023
- Repository: https://github.com/razorcx-courses/tekla-examples-2023

## Overview

TSOpenAPIExamples is a collection of C# examples for using the Tekla Structures Open API, not a single end-user application. Users run an individual sample or invoke a plugin in Tekla, provide picked objects or parameters, and see model or drawing operations performed. The tree shows broad model, drawing, plugin, and custom-property capabilities. The excerpts confirm several entry-point and helper relationships; many other sample implementations are unsampled, so their internal flows are not inferred.

Main entry points: [`Model/Plugins/BeamPlugin/BeamPlugin.cs`](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/BeamPlugin.cs) (Beam plugin), [`Drawings/Plugins/SlotPlugin/SlotPlugin.cs`](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/SlotPlugin/SlotPlugin.cs) (Slot plugin), [`Model/Applications`](https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Model/Applications) (Model operations), [`Drawings/Applications`](https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Drawings/Applications) (Drawing operations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Model examples"]
  node_model_examples["Model operations"]
  node_clash["Clash check<br/>[ClashCheck.cs]"]
  node_clash_form["Clash UI"]
end

subgraph group_drawings["Drawing examples"]
  node_drawing_examples["Drawing operations"]
  node_basic_views["Basic views<br/>[BasicViews.cs]"]
  node_basic_logic["View logic<br/>[AppLogic.cs]"]
  node_dimension_creator["Dimension creation"]
  node_drawing_list["Drawing list"]
end

subgraph group_plugins["Tekla plugins"]
  node_beam_plugin["Beam plugin<br/>[BeamPlugin.cs]"]
  node_beam_input["Point input<br/>[InputService.cs]"]
  node_beam_builder["Beam builder<br/>[BeamBuilder.cs]"]
  node_flange_brace["Flange brace<br/>[FlangeBrace.cs]"]
  node_reinforced_beam["Reinforced beam<br/>[ReinforcedBeam.cs]"]
  node_splice_connection["Splice connection"]
  node_drawing_mark["Drawing mark plugin"]
  node_slot_plugin["Slot plugin<br/>[SlotPlugin.cs]"]
  node_bolt_helper["Bolt helper<br/>[BoltHelper.cs]"]
end

subgraph group_properties["Custom properties"]
  node_custom_property["Object properties<br/>[CustomProperty.cs]"]
  node_top_level_property["Top-level property"]
end

node_user(("Engineer"))
node_tekla["Tekla Structures"]

node_user -.->|"runs sample"| node_model_examples
node_user -.->|"runs sample"| node_drawing_examples
node_user -.->|"invokes plugin"| node_beam_plugin
node_user -.->|"invokes plugin"| node_drawing_mark
node_user -.->|"invokes plugin"| node_slot_plugin
node_model_examples -.->|"uses API"| node_tekla
node_drawing_examples -.->|"uses API"| node_tekla
node_beam_plugin -->|"creates model beam"| node_tekla
node_beam_plugin -->|"gets inputs"| node_beam_input
node_beam_plugin -->|"creates beam"| node_beam_builder
node_flange_brace -->|"inserts model parts"| node_tekla
node_drawing_mark -->|"inserts mark"| node_tekla
node_slot_plugin -->|"uses helper"| node_bolt_helper
node_slot_plugin -.->|"reads drawing bolts"| node_tekla
node_top_level_property -->|"reads object solid"| node_tekla
node_clash_form -->|"uses clash logic"| node_clash
node_basic_views -->|"delegates logic"| node_basic_logic

click node_model_examples "https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Model/Applications"
click node_clash "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Applications/ClashCheckExample/ClashCheck.cs"
click node_clash_form "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Applications/ClashCheckExample/ClashCheckExampleForm.cs"
click node_drawing_examples "https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Drawings/Applications"
click node_basic_views "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/BasicViews/BasicViews.cs"
click node_basic_logic "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/BasicViews/AppLogic.cs"
click node_dimension_creator "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/DimensionCreator/DimensionCreator.cs"
click node_drawing_list "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/SimpleDrawingList/SimpleDrawingList.cs"
click node_beam_plugin "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/BeamPlugin.cs"
click node_beam_input "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/InputService.cs"
click node_beam_builder "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/BeamBuilder.cs"
click node_flange_brace "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/FlangeBrace/FlangeBrace.cs"
click node_reinforced_beam "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/ReinforcedBeam/ReinforcedBeam.cs"
click node_splice_connection "https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Model/Plugins/SpliceConnection"
click node_drawing_mark "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/InsertMarkPlugin/InsertMarkPlugin.cs"
click node_slot_plugin "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/SlotPlugin/SlotPlugin.cs"
click node_bolt_helper "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/SlotPlugin/BoltHelper.cs"
click node_custom_property "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/CustomProperties/CustomPropertyTest/CustomProperty.cs"
click node_top_level_property "https://github.com/razorcx-courses/tekla-examples-2023/blob/master/CustomProperties/CustomPropertyTest/ObjectTopLevelCustomPropertyExample.cs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_model_examples,node_clash,node_clash_form toneBlue
class node_drawing_examples,node_basic_views,node_basic_logic,node_dimension_creator,node_drawing_list toneAmber
class node_beam_plugin,node_beam_input,node_beam_builder,node_flange_brace,node_reinforced_beam,node_splice_connection,node_drawing_mark,node_slot_plugin,node_bolt_helper toneMint
class node_custom_property,node_top_level_property toneRose
class node_user,node_tekla toneIndigo
```

## Components

### Model examples

- [Model operations](https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Model/Applications): `Model/Applications`
- [Clash check](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Applications/ClashCheckExample/ClashCheck.cs): `Model/Applications/ClashCheckExample/ClashCheck.cs`
- [Clash UI](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Applications/ClashCheckExample/ClashCheckExampleForm.cs): `Model/Applications/ClashCheckExample/ClashCheckExampleForm.cs`

### Drawing examples

- [Drawing operations](https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Drawings/Applications): `Drawings/Applications`
- [Basic views](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/BasicViews/BasicViews.cs): `Drawings/Applications/BasicViews/BasicViews.cs`
- [View logic](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/BasicViews/AppLogic.cs): `Drawings/Applications/BasicViews/AppLogic.cs`
- [Dimension creation](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/DimensionCreator/DimensionCreator.cs): `Drawings/Applications/DimensionCreator/DimensionCreator.cs`
- [Drawing list](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Applications/SimpleDrawingList/SimpleDrawingList.cs): `Drawings/Applications/SimpleDrawingList/SimpleDrawingList.cs`

### Tekla plugins

- [Beam plugin](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/BeamPlugin.cs): `Model/Plugins/BeamPlugin/BeamPlugin.cs`
- [Point input](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/InputService.cs): `Model/Plugins/BeamPlugin/InputService.cs`
- [Beam builder](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/BeamPlugin/BeamBuilder.cs): `Model/Plugins/BeamPlugin/BeamBuilder.cs`
- [Flange brace](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/FlangeBrace/FlangeBrace.cs): `Model/Plugins/FlangeBrace/FlangeBrace.cs`
- [Reinforced beam](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Model/Plugins/ReinforcedBeam/ReinforcedBeam.cs): `Model/Plugins/ReinforcedBeam/ReinforcedBeam.cs`
- [Splice connection](https://github.com/razorcx-courses/tekla-examples-2023/tree/master/Model/Plugins/SpliceConnection): `Model/Plugins/SpliceConnection`
- [Drawing mark plugin](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/InsertMarkPlugin/InsertMarkPlugin.cs): `Drawings/Plugins/InsertMarkPlugin/InsertMarkPlugin.cs`
- [Slot plugin](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/SlotPlugin/SlotPlugin.cs): `Drawings/Plugins/SlotPlugin/SlotPlugin.cs`
- [Bolt helper](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/Drawings/Plugins/SlotPlugin/BoltHelper.cs): `Drawings/Plugins/SlotPlugin/BoltHelper.cs`

### Custom properties

- [Object properties](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/CustomProperties/CustomPropertyTest/CustomProperty.cs): `CustomProperties/CustomPropertyTest/CustomProperty.cs`
- [Top-level property](https://github.com/razorcx-courses/tekla-examples-2023/blob/master/CustomProperties/CustomPropertyTest/ObjectTopLevelCustomPropertyExample.cs): `CustomProperties/CustomPropertyTest/ObjectTopLevelCustomPropertyExample.cs`

### Other components

- **Engineer**
- **Tekla Structures**

## Connections

- Engineer → Model operations: runs sample
- Engineer → Drawing operations: runs sample
- Engineer → Beam plugin: invokes plugin
- Engineer → Drawing mark plugin: invokes plugin
- Engineer → Slot plugin: invokes plugin
- Model operations → Tekla Structures: uses API
- Drawing operations → Tekla Structures: uses API
- Beam plugin → Tekla Structures: creates model beam (evidence: `Model/Plugins/BeamPlugin/BeamPlugin.cs`)
- Beam plugin → Point input: gets inputs (evidence: `Model/Plugins/BeamPlugin/BeamPlugin.cs`)
- Beam plugin → Beam builder: creates beam (evidence: `Model/Plugins/BeamPlugin/BeamPlugin.cs`)
- Flange brace → Tekla Structures: inserts model parts (evidence: `Model/Plugins/FlangeBrace/FlangeBrace.cs`)
- Drawing mark plugin → Tekla Structures: inserts mark (evidence: `Drawings/Plugins/InsertMarkPlugin/InsertMarkPlugin.cs`)
- Slot plugin → Bolt helper: uses helper (evidence: `Drawings/Plugins/SlotPlugin/SlotPlugin.cs`)
- Slot plugin → Tekla Structures: reads drawing bolts
- Top-level property → Tekla Structures: reads object solid (evidence: `CustomProperties/CustomPropertyTest/ObjectTopLevelCustomPropertyExample.cs`)
- Clash UI → Clash check: uses clash logic (evidence: `Model/Applications/ClashCheckExample/ClashCheckExampleForm.cs`)
- Basic views → View logic: delegates logic (evidence: `Drawings/Applications/BasicViews/BasicViews.cs`)
