Skip to content
JONAS STAMM
— FIELD NOTES
technical-deep-dive— November 2, 2026· 6 min read

Our Floor-Plan Builder Knew the Stair Broke the Rules and Built It Anyway

A user in BauGPT can now attach a DWG or DXF floor plan to a chat message and get a 3D model of the house back. They do not wait for a file at the end. The...

JS
Jonas Stamm
Founder, BauGPT

A user in BauGPT can now attach a DWG or DXF floor plan to a chat message and get a 3D model of the house back. They do not wait for a file at the end. The model builds inside the chat while they watch, wall by wall.

That was the demo I wanted. What I did not expect was where the hard part would sit. Getting the walls, doors and windows right took most of the work. Getting from a correct floor plan to a house you could actually build took something else: German building rules. The clearest case was a stair.

A report nobody acts on is a log line. 6 things building a floor-plan-to-3D feature in BauGPT taught me.Drop in a floor plan. Watch the house build. Attach a DWG to a chat in BauGPT and a 3D model builds itself while you watch, wall by wall.1 · Hand the model what it can read. Our reader is a vision model, and a DWG is not a picture. So we render it first and send the image.2 · Prompting harder has a ceiling. The chat model kept misreading doors and windows. More prompting didn't fix it. A dedicated reader did.3 · Don't trust one reading. The reader runs three readings in parallel. A test compile keeps the one that holds together best.4 · Chat history is text, not state. Each message starts fresh. Our edits rebuilt the house from a simpler source. Now we keep the built plan.5 · Show the work. A long step behind a spinner feels broken. Watching walls go up doesn't, and users catch a misread room early.6 · Checks should act, not report. Our stair check flagged a flight that broke DIN 18065. The builder built it anyway. Now it switches to an L-shaped stair.Correct is not buildable. The plan was right. The geometry was right. The house just could not be built. That stair is still my favourite bug.
1 / 9
Slides: the lessons from this build, as I posted them on LinkedIn

A DWG is not a picture

The first problem was boring and it blocked everything. The part of BauGPT that reads a floor plan is a vision model. It looks at an image. A DWG is not an image, so it could not open one, and the attachment filter kept DWG files away from the vision model on purpose.

Worse, the chat counted a DWG as an attached drawing anyway. So it sent the user to the drawing reader, which could not parse the file, and the other build path refused to start because a drawing was attached. A user who uploaded a DWG and asked for a model had no path that worked.

The fix was to stop pretending. Our DWG import already rendered the drawing to an image. Now that render goes to the reader instead of the raw file, and the reader only gets attachments it can actually see.

Reading the drawing well enough

Before that, reading the plan was the bottleneck. The chat model got room shapes right and kept misreading doors and windows, no matter how we changed the prompt. Prompting harder did not fix it.

So we gave the job to a dedicated reader on Opus running on Bedrock. It redraws the plan as structured data, checks that the result compiles, and, before anything is built, fixes its mistakes up to twice by comparing the result with the labels on the drawing. Then we stopped trusting a single reading. The reader now runs three parallel readings, and a test compile keeps the reading that hangs together best.

A bug here taught me something about chat products. Each new message starts a fresh turn, and the history only carries text, not the plan the last turn built. So when a user asked to edit the plan, the model rebuilt it from a simpler source with no doors or windows and replaced the good model with a worse copy. We now keep the built plan so a follow-up edits the real thing.

Watching it build

The live view was mostly plumbing. The 3D editor already broadcast a snapshot on every change, and the chat already rendered blocks that update in place. The work was the seam between them, so the user follows the build without leaving BauGPT.

I like this pattern. When a step takes a while, showing it happen beats a spinner. The user sees the walls go up and can tell early if the reader misread a room.

Correct is not the same as buildable

Here is where the rules came in. A floor plan can be geometrically correct and still describe a house that breaks German building rules.

We added ten checks that run over every compiled model before we call it done. They cover storey and room height, daylight, rescue windows, parapets, stairs under DIN 18065, door width under DIN 18040-2, whether every room can be reached, door clearances and hallway width.

The stair check is the one that found a real problem. A straight stair needs room to run. If the hall for the stair is under about 4 m long, a straight flight there cannot meet DIN 18065. In a test house the stair had to climb 2.75 m and got only 2.70 m of floor to do it. That works out to a 19.3 cm going against the 23 cm minimum in DIN 18065. The step measure came out at 56 cm against a required band of 59-65 cm.

The embarrassing part is what we did with that. The check reported the violation, and the builder built the stair anyway. We had a rule that could see the problem and a builder that ignored it.

A report nobody acts on is a log line. The rule was right and the result was still wrong, because the check sat beside the builder instead of inside it.

A report nobody acts on is a log line.

So the builder now acts on it. When a straight flight cannot meet DIN 18065, it builds an L-shaped flight with a landing instead. That change brought its own fixes. Review found the turn went the wrong way and the stair check did not understand landings yet. Later rounds kept the stair opening inside one upper room so it never cuts through a bedroom floor, and made sure a door right where the stair starts rules that spot out.

RISE
2.75 m
what the stair had to climb
GOING BUILT
19.3 cm
per step, straight flight
GOING REQUIRED
23 cm
the minimum in the standard

What I take from it

The rules were not most of the work. Most of the commits were geometry, materials, the editor and evals. But the rules are what turn a nice picture into something a builder or an architect would take seriously. A buyer in construction does not care that the model looks right. They care whether it would pass.

This changed how I build checks elsewhere. A check that finds a violation should change the output, not only report it. And rules cannot judge everything. They could not see that our houses looked bare and cheap, so we also render each plan with and without detailing and let a vision judge compare the pairs blind.

The stair is still my favourite bug from this project. The plan was right. The geometry was right. The house just could not be built.

— END · Field Notes —
— THE NEWSLETTER

One note a week.
No fluff, just what works.

AI engineering, growth hacks, and messy lessons from shipping BauGPT. Unsubscribe anytime. I'll even miss you.

FIELD NOTES · NEXT ISSUE DROPS MONDAY
↳ No spam. One note weekly.