Flat Renovation (status) — an ArchLang floor plan example
A 1960s two-bedroom flat drawn for its works: the walls that come out dashed, the new walls in brick, the rooms as they will be.
This plan compiles to 7 rooms, 85.5 m² of floor area and 7 windows; every room is reachable from the entrance.
What this plan uses
The parts of the language this plan's source writes, each linked to its section of the language reference.
- Paper and scale
- Bindings (let)
- Control flow (for, if, while)
- Walls
- Walls from rooms
- Rooms
- Polygonal rooms
- Doors
- Windows
- Openings
- Furniture
- Dimensions
- Outdoor ground
- Title block
- Sheet tables (schedules, legend, notes)
- Levels (storeys)
The source
This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.
# Flat 14, Elm Court: the renovation of a 1960s deck-access two-bedroom flat into an open-plan
# home. One sheet carries both states, the way a building-control drawing does:
# - walls drawn in the light hatched poché are EXISTING and stay;
# - walls drawn dashed (`status demolish`) are the 1960s walls that come out;
# - walls drawn solid (`status new`, built in brick) are the NEW work.
# Everything else (rooms, doors, windows, furniture) is the flat as it will be lived in.
#
# The works: the kitchen/dining and dining/living walls come down to make one kitchen, dining
# and living room off the balcony; the small second bedroom is split by a new wall into a
# walk-in wardrobe and an ensuite, both reached from the main bedroom through new doors, and
# its old door off the hall is blocked up; the old store off the hall becomes a utility room.
plan "Flat 14, Elm Court: renovation" {
units mm
grid 50
paper A3 portrait
scale 1:50
north up
schedule rooms
legend
notes "Existing walls to be retained are drawn hatched."
notes "Walls to be demolished are drawn dashed: the kitchen/dining and dining/living walls."
notes "New walls are drawn solid: the wardrobe/ensuite wall and the blocking-up of the old bedroom 2 door."
notes "New doors: main bedroom to walk-in wardrobe, wardrobe to ensuite. New opening: hall to living room."
notes "Former store converted to utility room; washer and dryer vented to the access gallery."
level 4 "Fourth floor" height 2700 {
# ---- the flat after the works ----
room id=r_kdl polygon (0,0) (3400,0) (3400,3900) (6400,3900) (6400,7500) (0,7500)
label "Kitchen / Dining / Living" at (1700,6800) uses kitchen dining living floor timber
room id=r_hall polygon (3400,0) (5400,0) (5400,2700) (11400,2700) (11400,3900) (3400,3900)
label "Hall" at (4400,1600) uses entry hall floor stone
room id=r_bath at (5400,0) size 3000x2700 label "Bathroom" uses bath floor tile
room id=r_util at (8400,0) size 3000x2700 label "Utility" uses utility floor tile
room id=r_wiw at (6400,3900) size 2000x1800 label "Walk-in wardrobe" uses storage floor carpeting
room id=r_ens at (6400,5700) size 2000x1800 label "Ensuite" uses bath floor tile
room id=r_bed at (8400,3900) size 3000x3600 label "Main bedroom" uses bedroom floor carpeting
walls from rooms exterior 300 partition 100
# ---- demolition: the 1960s kitchen/dining and dining/living walls ----
wall id=x_kitchen partition thickness 100 status demolish { (0,3400) (3400,3400) }
wall id=x_dining partition thickness 100 status demolish { (3400,3900) (3400,7500) }
# ---- new work ----
# The new wall that splits the old bedroom 2 into a walk-in wardrobe and an ensuite.
wall id=n_split partition thickness 100 material brick status new between r_wiw and r_ens
# The old bedroom 2 door off the hall, blocked up.
wall id=n_infill partition thickness 100 material brick status new { (7350,3900) (8150,3900) }
# ---- doors ----
door id=d_front on r_hall.top at 1000 from start width 1000 swing inward
opening id=o_living between r_hall and r_kdl at 700 from r_hall.left width 1000
door id=d_bath between r_hall and r_bath at 600 from r_bath.left width 800 swing into r_bath
door id=d_util between r_hall and r_util at 600 from start width 800 swing into r_util
door id=d_bed between r_hall and r_bed at 550 from start width 800 hinge near end swing into r_bed
door id=d_wiw between r_bed and r_wiw at 1100 from start width 800 hinge near start swing into r_wiw
door id=d_ens sliding between r_wiw and r_ens at 1350 from start width 800
door id=d_balcony glazed_sliding on r_kdl.bottom at 4900 from start width 2400
# ---- windows ----
window casement on r_kdl.top at 2400 from start width 700
window fixed on r_kdl.left at 1800 from start width 800
window casement on r_kdl.left at 5300 from start width 1400
window tilt on r_bath.top at 2300 from start width 800 sill 1500
window tilt on r_util.top at 1800 from start width 800 sill 1200
window tilt on r_ens.bottom at 1500 from start width 600 sill 1500
window tilt_turn on r_bed.bottom at 1500 from start width 1400
# ---- dimensions on the building ----
dim (-150,-150)->(-150,7650) offset 900
dim (-150,7650)->(11550,7650) offset 2400
let SOUTH = [-150, 3700, 6100, 7600, 8200, 9200, 10600, 11550]
for i in 0..7 {
dim (SOUTH[i],7650)->(SOUTH[i + 1],7650) offset 1700
}
# ---- kitchen: the run under the gallery window, a breakfast bar with its stools ----
# A `bar_counter`, not an `island`: the island symbol always draws a sink (compact) or a hob
# (aspect >= 1.8), and the run already carries both, so an island would draw a second one.
furniture fridge against r_kdl.top offset 500 size 700x650 in r_kdl
furniture counter against r_kdl.top offset 1125 size 550x600 in r_kdl
furniture stove against r_kdl.top offset 1700 in r_kdl
furniture range_hood against r_kdl.top offset 1700 in r_kdl
furniture kitchen_sink against r_kdl.top offset 2400 size 700x600 in r_kdl
furniture dishwasher against r_kdl.top offset 3050 in r_kdl
furniture bar_counter at (850,1850) size 1800x900 in r_kdl
# ---- dining by the west window ----
furniture id=t_dining table at (700,4500) size 1900x950 in r_kdl
furniture chair at (750,3950) size 500x500 facing t_dining in r_kdl
furniture chair at (1400,3950) size 500x500 facing t_dining in r_kdl
furniture chair at (2050,3950) size 500x500 facing t_dining in r_kdl
furniture chair at (750,5500) size 500x500 facing t_dining in r_kdl
furniture chair at (1400,5500) size 500x500 facing t_dining in r_kdl
furniture chair at (2050,5500) size 500x500 facing t_dining in r_kdl
# ---- living: sofa facing the TV wall, the balcony doors beside ----
furniture id=f_tv tv_unit at (5900,5000) size 450x1400 in r_kdl
furniture sofa at (3600,4700) size 900x2200 facing f_tv in r_kdl
furniture id=f_ct coffee_table at (4800,5200) size 600x1000 in r_kdl
furniture rug at (3500,4500) size 2300x2400 in r_kdl
furniture floor_lamp at (5900,4100) size 400x400 in r_kdl
# ---- hall ----
furniture shoe_cabinet against r_hall.left offset 1700 size 900x350 in r_hall
furniture coat_rack at (4950,250) size 400x400 in r_hall
furniture console_table against r_hall.bottom offset 2400 size 1000x350 in r_hall
# ---- bathroom ----
furniture bathtub against r_bath.top offset 900 size 1700x700 in r_bath
furniture basin against r_bath.right offset 900 size 600x450 in r_bath
furniture wc against r_bath.right offset 1800 size 400x700 in r_bath
# ---- utility ----
furniture washer against r_util.top offset 400 in r_util
furniture dryer against r_util.top offset 1050 in r_util
furniture laundry_sink against r_util.top offset 1800 in r_util
furniture tall_cabinet against r_util.right offset 1300 size 1200x500 in r_util
# ---- main bedroom, walk-in wardrobe, ensuite ----
furniture double_bed against r_bed.right offset 1900 size 1500x2000 in r_bed
furniture nightstand against r_bed.right offset 850 in r_bed
furniture nightstand against r_bed.right offset 2950 in r_bed
furniture wardrobe against r_wiw.left offset 900 size 1700x600 in r_wiw
furniture wardrobe against r_wiw.top offset 1050 size 800x600 in r_wiw
furniture shower in r_ens anchor bottom-left flush size 900x900
furniture basin against r_ens.left offset 400 size 600x450 in r_ens
furniture wc against r_ens.right offset 1250 size 400x700 in r_ens
# ---- the ground: the balcony to the south (the access gallery to the north is common parts, not drawn) ----
outdoor id=g_balcony balcony at (3400,7650) size 3000x1500 label "Balcony"
}
title {
project "Flat 14, Elm Court"
drawn_by "ArchLang"
date "2026-12-03"
number "SR-10"
revision "A"
}
}
More in Homes
- City Apartment: A one-bedroom city flat whose open living-kitchen and bedroom take the sunny side and open onto a long balcony.
- Garden Cottage: A country cottage on a deep lot where the garden is the subject: a greenhouse, raised beds, a gazebo and an orchard.
- Garden Courtyard House: A family house wrapped round a garden courtyard that is open ground rather than a room, with a home office and a care room.
- Courtyard Home: A single-storey family house wrapped round a paved courtyard with a rill pool, its rooms arranged by aspect from the street to the garden.
- Two-bed flat: A two-bedroom apartment with every room off a central corridor, its walls derived from the rooms — the plainest complete dwelling in the set.
- Attached (strip): A one-bedroom flat with no hand-computed coordinates: a strip of rooms, openings pinned along walls, furniture placed in rooms.
- Bungalow (site + doors): A single-storey bungalow whose whole layout follows one stated fact: the street is south and the garden north.
- Courtyard House: A 16.3 x 11.8 m house whose rooms ring an open courtyard — which is a hole in the building, not a room.
- Courtyard Family House: A family house round an open courtyard, furnished with pieces no other example draws: bunk beds and a crib, a hot tub and a fire pit.
- Townhouse (3 levels): A 5.5 x 11 m three-storey terrace house: one level block per storey, and one drawing per storey.
- Two-storey (2 levels): A compact two-storey house whose stair carries the same id on both floors, which is what declares one shaft.
- Turning Stair: A small house with a quarter-turn stair: one stair of flights and a landing, the same block on both floors.
- Furnished Flat: A two-bedroom flat furnished from the symbol catalogue: thirty-eight drawn fixture kinds across five domains.
- Issued Sheet (tags + notes): A small flat issued on A3 with a drawing number, general notes and a tag on every door and window, keyed to a schedule.
- Apartment Remodel: A flat drawn for its works: two demolished partitions dashed, one new wall, and rooms measured as they will be.
- Garden House (site plan): A family house on a 22 x 22 m lot drawn as a site plan: the lot line, nine ground materials, fences and a garden.