Digitise old building plans the easy way

In nine steps a yellowed building plan becomes a clean drawing to scale – as a PDF for printing, as DXF for any CAD program and as a small text file that will still be readable in 50 years.

Go to the guide Try it in the browser

Why as text?

  • Paper plans yellow, copies distort, building files get lost. A text file with the dimensions is small, exact and lasting.
  • ArchLang describes a floor plan in simple lines: “room kitchen, 3.26 × 4.01 m”. The program draws the plan from it – to scale, with walls, doors, windows and room areas.
  • The areas are calculated, not estimated. A typo shows up at once, because the area no longer matches the old plan.
  • An AI can write the first version: give it a photo of the plan, get the file back, check the dimensions.
  • ArchLang is free (open source, MIT licence) and runs in the browser or on your own computer.

What you need: the old plan, a phone or a scanner, a browser – and about an hour for the first storey. No programming skills required.

🇳🇿 The idea: Chan Meng from New Zealand

ArchLang was created by Chan Meng from New Zealand. Her brilliant idea: not to draw floor plans but to write them as text – as exact as a building plan, as easy to read as a shopping list and so clear that an AI can write it and the program can check it. That turns an old building plan into a file in an hour that anyone can still open decades from now. A big thank-you for publishing her work freely for everyone!

github.com/ChanMeng666/archlang · archlang.uk

1Get the plan and photograph it

Old plans are in your own building file, at the municipal building office or the district authority (owners may inspect the files). Best are floor plans of every storey and a section (for the storey heights).

  • Photograph in daylight, straight from above, the whole sheet in the picture, the plan lying flat.
  • The dimension figures must be sharp – several photos of parts are better than one blurred overall picture.
  • With a scanner: 300 dpi, greyscale is enough. The original stays untouched.
Step 1: photo of an old plan (here a section) – taken straight on, every line and figure readable.
Step 1: photo of an old plan (here a section) – taken straight on, every line and figure readable.

2Copy the dimensions from the dimension chains

Only the figures written on the plan count – never measure the paper with a ruler: paper shrinks, copies and photos distort.

  • The house’s outside dimensions and the clear room dimensions (wall to wall).
  • Wall thicknesses: typical German plans have 38 or 30 cm outside, 24 or 11.5 cm inside.
  • Doors and windows: width, for windows the sill height; the position from the dimension chain.
  • Storey heights from the section (finished floor to finished floor).
  • Old German notation: 4,01 = 4010 mm (comma as decimal sign); a raised 5 as in 4,135 means half a centimetre more = 4135 mm.

Simplest on a sheet of paper or in a table: room, width, depth, remark.

3Choose a tool

Three ways – all free:

  • No installation: open the ArchLang playground in the browser. The text is on the left, the plan appears on the right straight away.
  • With an AI: add the ArchLang app in ChatGPT, or the connector https://mcp.archlang.uk/mcp in claude.ai (instructions). The AI reads the photo, writes the file and checks it.
  • On your own computer: install Node.js, then one command is enough: npx -y @chanmeng666/archlang compile plan.arch -o plan.svg

4Write the first version (or have it written)

With an AI: upload the photo and your list of dimensions and add the text below. Without an AI: copy the example and adapt it room by room. Good to know: ArchLang itself does not read images – the AI reads the photo, ArchLang draws and checks.

Text for the AI

Here is a photo of an old building plan (ground floor) and my list of dimensions.
Write an ArchLang file (.arch) from it. First read the language description (npx -y @chanmeng666/archlang spec) and https://archlang.uk/from-an-image.
- Use only the figures of the dimension chains, in mm, never lengths measured off the picture. A raised 5 means +5 mm.
- Put important dimensions at the top as let values.
- Rooms with room … at … size, walls with walls from rooms (thicknesses as on the plan), doors and windows with width, sill and head.
- One level per storey with the storey height from the section.
Check with validate and describe, compare the room areas with the plan and list every dimension you could not read with certainty.

Example: two rooms of an old house

# Altbau, Erdgeschoss – abgeschrieben aus einem alten Bauplan
plan "Altbau" {
  units mm
  scale 1:50
  north up

  # Maße aus den Maßketten des Plans (lichte Raummaße, 4,01 = 4010 mm)
  let H = 4010          # Raumtiefe Küche und Stube
  let K = 3260          # Küche, Breite
  let S = 4135          # Stube, Breite (4,13 mit hochgestellter 5)

  level 0 "Erdgeschoss" height 2800 {
    room id=kueche at (0, 0) size K x H label "Küche" uses kitchen
    room id=stube at (K, 0) size S x H label "Stube" uses living
    walls from rooms exterior 380 partition 240
    door at (K, 2000) width 885 wall partition swing into stube
    door at (1200, H) width 1010 wall exterior
    window at (1600, 0) width 1010 wall exterior sill 900 head 2100
    window at (5300, 0) width 1260 wall exterior sill 900 head 2100
    furniture kitchen_sink in kueche anchor top-left flush size 800x600
    furniture stove in kueche anchor left flush size 600x600
    furniture counter in kueche anchor top flush size 1200x600
  }
}

units mm – all figures in millimetres · let – fix a dimension once · room … at (x, y) size W x D – room by its top-left corner and size · walls from rooms – walls are built around the rooms, with outside and inside thickness · door/window … at (x, y) – opening in the wall at that point, sill/head = sill and lintel height · furniture – fittings (optional). The labels are German because the example comes from a German plan.

Open the example in the playground

5Compile and compare with the original

In the playground the plan appears at once. On your own computer:

npx -y @chanmeng666/archlang validate altbau.arch   # errors and hints
npx -y @chanmeng666/archlang describe altbau.arch   # rooms, areas, neighbours
npx -y @chanmeng666/archlang compile altbau.arch -f png -o altbau.png
  • Put the picture next to the photo and compare room by room: position of doors, windows, walls.
  • Compare the room areas from describe with the old floor-area calculation in the building file – if they match, the dimensions usually do too.
  • Messages from validate give the line and the cause, often with a suggested fix.
Step 5: the example above as drawn by ArchLang – with wall thicknesses, doors, windows and calculated areas.
Step 5: the example above as drawn by ArchLang – with wall thicknesses, doors, windows and calculated areas.

6Add more storeys

Each storey is its own level block with number, name and storey height: level -1 "Keller" height 2600 { … }, level 1 "Obergeschoss" height 2750 { … }. If the floor plans are the same, write them once as a component and call it in every storey. Keeping the axis dimensions as let values at the top of the file holds everything together: change one dimension and all storeys follow.

Step 6: a whole storey with stairs, bathroom and WC (example from archlang-section, scale 1:50).
Step 6: a whole storey with stairs, bathroom and WC (example from archlang-section, scale 1:50).

7Draw a section (optional)

ArchLang draws floor plans. For sections there is the extension archlang-section: the cut line and the floor build-ups are written as comments in the same file, ArchLang is left untouched.

# @section A x=4300 look east
# @floor 0 Fliesen:15 Estrich:65 Trittschall:30 Stahlbeton:180 Putz:15
# @ground -300

The command ./arch_section.py plan.arch draws the section with level marks, clear room heights, stairs and terrain – as SVG, PNG and DXF.

Step 7: section A–A through the same house over three storeys – slabs layer by layer, level marks, stairs.
Step 7: section A–A through the same house over three storeys – slabs layer by layer, level marks, stairs.

8Export: PDF, DXF, image

npx -y @chanmeng666/archlang compile altbau.arch -f pdf -o altbau.pdf
npx -y @chanmeng666/archlang compile altbau.arch -f dxf -o altbau.dxf
  • PDF for printing at 1:50 or 1:100 – for tradespeople, the bank, the insurer.
  • DXF for any CAD program (LibreCAD, FreeCAD, AutoCAD) – an architect can continue drawing straight away.
  • PNG/SVG for websites and property listings.
  • With archlang-section, ./arch_export.py plan.arch -o folder produces every sheet at once.

9Keep it safe

The .arch file is the real treasure: a few kilobytes of plain text, readable with any editor. Put it in a folder together with the photo of the original and keep two copies (second disk, cloud, or a USB stick with the building documents). If you like, manage it with Git – then every change can be traced.

Tips and pitfalls

  • Plan is not building. Old houses were often built differently from the drawing. Check important dimensions with a laser meter and note it in the file as a comment: # measured 2026 or # from plan.
  • Add up dimension chains. The single dimensions must sum to the overall dimension. If not, a figure has been misread.
  • Carcass or finished? Dimensions on German building plans are usually carcass dimensions, without plaster; a room measured today is therefore a little smaller. Stay consistent and note at the top of the file what you mean.
  • One storey at a time. Finish and check the ground floor first, then basement and upper floor – the outside dimensions usually match.
  • Slanted walls and bay windows work with polygon rooms; to start with a rectangle is enough, details later.
  • Don’t guess what you can’t read. Mark it as # TODO and measure on site – ask the AI to name anything uncertain explicitly.

Example to download

Further reading