Tekniq mark
Tekniq SDK Docs

First Plugin

Create a small plugin that initializes the SDK correctly and runs inside Tekla

Minimal example Create a small plugin that initializes the SDK correctly and runs inside Tekla
Audience: New developers Level: Basic Area: Example

First Plugin

The goal of this page is to show the smallest possible Tekla plugin that references the SDK and initializes it correctly.

Minimal startup pattern

public override bool Run(List<InputDefinition> userPickerInput)
{
    TekniqSdk.Initialize(typeof(MyPlugin).Assembly);
    TekniqSdk.RequireInitialized();
    TekniqSdk.RequireLicensed();

    // Your plugin logic here
    return true;
}

This keeps the important rule obvious: initialize the SDK using the actual plugin assembly loaded by Tekla.

What to validate

  • The plugin compiles
  • The signer generates a matching .tekniqlicense file
  • Both files are deployed to the Tekla extension folder
  • The plugin starts successfully inside Tekla

Continue to Startup Flow