Graphic with a rendered parametric bracket and the words: our own 3D printing toolchain
AIThis post was created with the assistance of artificial intelligence (AI).

A first-person report by Thorsten Meyer.

Buying for a business?Offer from Amazon

Get business pricing on tech for your team

  • Business-only prices and quantity discounts
  • Tax-exempt purchasing
  • Multiple users, one account, clear invoices
As an affiliate, we earn on qualifying purchases.

Can an AI agent design a part that fits in your hand? In our workshop the answer is a careful yes, with a human holding the calipers at the end. The agents work in Kantholm, the CAD program I use for 3D printing, and in a small code-CAD inside Lagvik, the logbook that tracks every print on our Bambu Lab X2D. This article explains how that works, which rules keep it honest and where the agents still need help.

Our 3D printing toolchain on video: design in Kantholm, slice, print on the X2D, book the cost in Lagvik

The video above shows the toolchain itself: design, slicing, printing and the cost of the finished part.

How does an AI agent work inside a CAD program?

Not with a mouse. Kantholm, a fork of the open-source project SolidCraft (MIT and Apache 2.0 licences), runs the same commands whether a person clicks a button or a program sends them. It has a command line and a server that speaks the Model Context Protocol, the standard many AI assistants use to call tools.

So an agent does not draw. It writes. A part becomes a short script: create a parameter for the length, draw a box, add a wall, cut two holes at a quarter and three quarters of the length. Kantholm runs the script and answers with facts the agent can check: did every step succeed, what is the volume, how large is the bounding box.

Animation of a parametric bracket: as the length value changes from 40 to 100 mm, the part rebuilds and both holes move along
A scripted bracket, rendered without a window. The holes follow the length rule.

The animation above came out of exactly such a script, built and rendered without the app ever opening a window.

Why is measuring more important than modelling for an agent?

Because a model that looks right can still be wrong. A cut that misses the body leaves the volume unchanged. A wall joined in the wrong place adds a second body instead of growing the first one. An agent that only says “done” would never notice.

So the rule is simple: after each stage the agent measures and compares against the numbers it worked out beforehand. If the volume did not drop after cutting a hole, the hole missed. That habit catches more mistakes than any amount of rendering.

Overview graphic of what Kantholm can do: explainer models, assemblies, buildings, process scenes, line art and 3D printing
What the CAD tool is used for, including scripts written by agents.

Who decides, and who checks the agents?

I decide what gets built. Agents propose plans, and the questions that change the result come back to me. On the code side, the rules for building Kantholm itself were these:

  • Every new function had to run for real, not just compile.
  • Every fix needed a test that fails on the old code and passes on the new.
  • Larger changes went to a second AI model from another vendor, which could read but not write.
  • New releases of the open-source original were built and tested unchanged before we merged them.

For printed parts there is one more step no agent can do. In Lagvik’s code-CAD every standard part, from a spacer sleeve to a wall hook, carries test dimensions. The agent builds the part and checks them on the model. Then I print it and measure the real piece. Only then is it finished.

What happens after the part is designed?

The part goes out as a 3MF file to Bambu Studio, mostly with default settings, and prints on the X2D. When the print is done, Lagvik reads the finished print file from the printer, read-only, and books the grams of filament and the material cost. A toolbox frame in PETG, for example, used 68 grams, ran for 1 hour and 58 minutes and cost €0.68.

How AI agents helped build the logbook itself is covered in an earlier report on this site: AI agents and our 3D printer’s bookkeeper.

Where do the agents still struggle?

  • Geometry traps. A fillet larger than the narrower face beside it breaks the model. Agents need that rule spelled out.
  • Real-world tolerance. A thread that is exact in CAD is too tight in plastic. Printed threads need clearance, and only a test print shows how much.
  • New functions. Some of the newest print features, added on 1 December 2026, have not been proven on many real prints yet.

What this means for you

  • Pick tools with a scriptable interface. An agent can only help with software it can drive.
  • Make the agent measure. Ask for numbers after every step, not a summary at the end.
  • Keep a second reviewer. A different model that can only read finds different mistakes.
  • Keep a human at the printer. The final test of a printed part is a caliper, not a model.

Gear for a home 3D printing setup

Affiliate links: we may earn a commission if you buy through them, at no extra cost to you.

EVERYDAY FILAMENT
Bambu Lab PLA Matte, 1.75 mm, 1 kg

Bambu Lab PLA Matte, 1.75 mm, 1 kg

  • ✔ Finish: matte, non-reflective
  • ✔ Diameter: 1.75 mm ±0.03 mm
  • ✔ AMS: RFID print settings
FOR FUNCTIONAL PARTS
Bambu Lab PETG, 1.75 mm, 1 kg

Bambu Lab PETG, 1.75 mm, 1 kg

  • ✔ Use: tough parts, outdoor use
  • ✔ Resists: water, UV, temperature changes
  • ✔ AMS: RFID print settings
KEEP FILAMENT DRY
SUNLU S4 Filament Dryer

SUNLU S4 Filament Dryer

  • ✔ Capacity: four 1 kg spools
  • ✔ Temperature: 35–70 °C
  • ✔ Timer: up to 99 hours
MEASURE EVERY PRINT
Shelly Plug US Gen4

Shelly Plug US Gen4

  • ✔ Power monitoring: built in
  • ✔ Connectivity: Wi-Fi, Bluetooth, Zigbee, Matter
  • ✔ Load: up to 15 A / 1800 W
CLEANER AIR IN THE PRINT ROOM
Levoit Core 300-P Air Purifier

Levoit Core 300-P Air Purifier

  • ✔ Filtration: 3-in-1 filter
  • ✔ Sleep mode: 24 dB
  • ✔ Room size: up to 1,073 sq ft