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
.tekniqlicensefile - Both files are deployed to the Tekla extension folder
- The plugin starts successfully inside Tekla