Getting started
This guide takes a Tekla Structures plugin from nothing to a protected plugin: only the users you allow can open it, and only with the builds you uploaded. It takes about fifteen minutes.
1. Create a workspace
Section titled “1. Create a workspace”- Open app.plugboard.cloud/register.
- Choose a plan (Free needs no card), then fill in Company or workspace name, Your name, Work email and a password. Disposable email addresses are not accepted.
- Accept the terms and click Create workspace.
- Open the link in the verification email.
2. Create the application
Section titled “2. Create the application”An application is one plugin, e.g. “Rebar Exporter”.
- Open Applications and click New application.
- Under Settings, choose the Login lifetime: how long a login stays valid, also offline, before the user has to sign in again.
Plugins shipped together in one .tsep package go into an application group; see
Package releases.
3. Add the login library
Section titled “3. Add the login library”In the plugin project (.NET Framework 4.8), add the package:
dotnet add package Plugboard.Authenticate.ClientConfigure it once, in the plugin’s static constructor, and ask for a login before the plugin does its work:
using System;using System.Collections.Generic;using System.Threading.Tasks;using Tekla.Structures.Plugins;using Plugboard.Authenticate.Client;
[Plugin("RebarExporter")][PluginUserInterface("RebarExporter.MainWindow")]public class RebarExporterPlugin : PluginBase{ static RebarExporterPlugin() { Auth.Configure(new AuthenticatorOptions { BaseUrl = new Uri("https://app.plugboard.cloud/"), PluginAssembly = typeof(RebarExporterPlugin).Assembly, ApplicationName = "Rebar Exporter", // shown in the login window }); }
public override bool Run(List<InputDefinition> input) { // Run() is synchronous; wait for the login without blocking WPF's message loop. var loggedIn = Task.Run(() => Auth.EnsureLoggedInAsync()).GetAwaiter().GetResult(); if (!loggedIn) { return false; // the user cancelled the login }
// ... the plugin's work, as before ... return true; }}No API key or signing keys are needed in the plugin: Plugboard recognises the plugin by its DLL and
the library checks the server’s signatures itself. In a WPF window, call
await Auth.EnsureLoggedInAsync() in the Loaded handler instead. All options are in the
Login library reference.
4. Upload the build
Section titled “4. Upload the build”Build the plugin in Release mode, then:
- Open the application → Versions.
- Drop the plugin DLL on the upload area. Leave Version empty to read it from the file.
- Click Upload version. Tick Publish now only when you want to announce it to users.
Plugboard recognises each build by its file, so upload every build you ship, even a rebuild of the same code. A build that wasn’t uploaded, or was changed after the upload, can’t sign in. To upload from a build pipeline, see Upload from CI.
5. Allow users
Section titled “5. Allow users”- Invite your team under Users → Add user (they get an email to set a password).
- Open the application → Allowed users → Add users, and select who may use the plugin.
Only these users can open the plugin. For a group, users added to it can use all its applications.
6. Sign in from Tekla
Section titled “6. Sign in from Tekla”- Copy the plugin to your Tekla extensions folder and run it.
- The login window opens and the browser asks you to sign in to Plugboard (with two-factor authentication or a passkey, if you have set one up). Confirm the login.
- The plugin runs. Later starts don’t ask again until the login expires, and work offline too.
In Plugboard, the application’s Active logins tab now shows your login with the version and the PC.
Then try what is refused:
- Sign in as a user who isn’t in Allowed users: the login is refused.
- Rebuild the plugin without uploading the new build: it can’t sign in.
- Under Active logins, log yourself out, or Block the version under Versions: the next time the plugin starts while online, it asks for a new login or a newer version.
Something not working? See Troubleshooting.
Next steps
Section titled “Next steps”- Versions and updates: publish new versions, block old ones and notify users.
- Workspace admin guide: roles, groups, plugin logins and the audit log.
- Add usage tracking: see how your plugins are used.