Grasshopper Tekla Drawing Link took me 162 active days. TeClash, a bigger tool, took five.
Same API, same person, same way of counting. I didn’t get faster at C#. I stopped writing most of it. An AI agent writes it now, and the reason that works on Tekla isn’t the one most people expect.
A chatbot can’t see your model, so you carry every error
A chatbot is a good engineer on the phone. It knows a lot of C# and some Tekla. But it can’t build your project, can’t run it against a model and can’t read what went wrong. You paste its code into Visual Studio, build, paste the error back, run it in Tekla, describe what happened. Every round trip goes through you.
For a 40-line macro that’s fine. For a tool with a window, settings, an installer and the tests nobody writes (nothing selected, a part inside a component, a model with 50,000 parts), you’re the postman for weeks. That’s the boring 80 percent of a tool, and it’s where most good ideas died, mine included.
An agent runs the check itself: write, build, run in Tekla, fix
You already know this loop from design. Choose a section, check it, it fails, change it, check again. An agent does the same with code. It writes, builds against the Tekla NuGet packages of your version, runs the result, reads the error and goes round again. You stop carrying messages.
Running it in Tekla is the part people don’t expect. The Tekla Open API skill ships a small launcher macro, Dev Runner, that you install once. After that the agent can start a macro inside the running Tekla from the terminal and read the answer back:
# the agent runs this itself and reads the output, not you
pwsh ./scripts/Invoke-TeklaMacro.ps1 -Macro '.\Heavy Parts.cs' -TeklaVersion 2025.0 -OutFile .\out.txt
The macro itself is ordinary, read-only Open API code. The only trick is where the answer goes:
var model = new Model();
var heavy = new List<string>();
ModelObjectEnumerator parts = model.GetModelObjectSelector()
.GetAllObjectsWithType(ModelObject.ModelObjectEnum.BEAM); // beams AND columns
while (parts.MoveNext())
{
var part = parts.Current as Part;
double weight = 0;
if (part != null && part.GetReportProperty("WEIGHT", ref weight) && weight > 500) // false = no weight, not 0 kg
heavy.Add(part.Name + " " + weight.ToString("F0") + " kg");
}
// A macro has no console: the answer goes to a file the agent reads back
string report = heavy.Count + " parts over 500 kg\n" + string.Join("\n", heavy);
string outPath = Environment.GetEnvironmentVariable("TEKLA_MACRO_OUT");
if (outPath != null) File.WriteAllText(outPath, report); else Console.WriteLine(report);
The agent asks the model, checks the answer and fixes its own code. You’re not in the middle. I use Claude Code, on the $20-a-month plan. Any agent that can run commands works the same way.
162 days against 5, and the part I have to be honest about
An active day is a calendar day with at least one saved change. Ten minutes of work counts as a full day. Drawing Link, counted over 2023 and 2024 only: 38,000 lines, 755 changes, 162 active days. TeClash: 43,000 lines, five active days.
Now the catch. More than half of TeClash is tests. The tool itself is about 19,000 lines, so Drawing Link has more product code. But I never wrote proper tests for Drawing Link. There was no time. TeClash came with almost 24,000 lines of them, because the agent writes the tests and runs them every time it changes something. It gets checked more often than my code ever was.
Five tools this year, about 25 active days together, all free on Tekla Warehouse.
The agent never once told me which tool to build
My first message for Numbering Detective was one sentence: “I need a tool that compares two elements, mainly assemblies, in Tekla 2025, showing the differences both in a table and graphically.” The first message for TeClash wasn’t a specification either. It started: “People are screaming for a better tool in Tekla Structures for clashes. Not everything that collides is a true clash.”
That’s a detailer complaining. It was enough to start. What the agent couldn’t give me:
- Which tool. Every idea came from a bad afternoon in Tekla, not from the AI. And a bad idea gets built as fast as a good one.
- What “right” means. Two assemblies got different marks. Is the mark itself a difference? No: you compare them because the marks differ. The agent didn’t know that. I did, because I use Tekla.
- A real model. The agent’s tests run on small, clean examples. Your model has a connection from five years ago and a part someone copied twice. I opened every tool in a real model and asked: would I trust this on Monday morning?
None of that is programming. It’s detailing.
Where an agent still gets Tekla wrong
Without Tekla knowledge, it guesses. It writes API names that sound right and don’t exist, and the build catches those. It doesn’t catch the guesses that compile. My agent assumed GetReportProperty returns area and volume in the same units. It doesn’t: area comes back in m², volume in mm³. That’s why my agent reads a Tekla skill before it writes a line. More on that in why AI writes Tekla code that doesn’t exist.
And it doesn’t remove the need to read the code. You don’t have to write C#. Someone has to read it well enough to know it does what you asked.
Your first agent-built Tekla tool
- Pick a pain where you know the right answer by heart.
- Describe it the way you’d describe it to a colleague, and ask for read-only by design.
- Let the agent build and run it. You check results in the model, not compiler output.
- Open it in a real model before anyone else uses it.
- Need it once, not every week? Tekla’s Developer Assistant writes and runs a macro with nothing to install. Start there.
You won’t learn C#. You’ll learn to drive. The course is the way I built these five tools, slowed down. Fifteen lessons, each ending with a working tool, from a read-only Selection Reporter to a plug-in packaged as a .tsep. The agent writes the code. You learn to brief it, read what it wrote and check it against the model. The Tekla Open API skill comes with it.
Tekla Open API Course: build real Tekla tools with an AI agent →
Related: Tekla Open API skill: why AI invents API that doesn’t exist · GetReportProperty: types, units and the silent false · Lock and unlock Tekla objects from C# with OBJECT_LOCKED
