Riverside House (2 levels) — an ArchLang floor plan example
A two-storey family house on a riverside lot with a double-height living room, a turning stair with winders and a pool terrace.
Level 1 (Ground floor) compiles to 7 rooms, 115.2 m² of floor area and 9 windows; every room is reachable from the entrance.
This is a 2-level plan: a storey is a drawing, so the compiler produces one sheet per level and the drawing above is level 1. The command line writes one file per level, and the playground's preview has a storey switcher. Each storey measures:
- Level 1 (Ground floor) — 7 rooms, 115.2 m² of floor area, 9 windows.
- Level 2 (First floor) — 9 rooms, 115.2 m² of floor area, 8 windows.
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
- Site and orientation
- The lot line (boundary)
- Bindings (let)
- Control flow (for, if, while)
- Walls from rooms
- Rooms
- Polygonal rooms
- Doors
- Windows
- Openings
- Furniture
- Dimensions
- Stairs, elevators and escalators
- Roofs (the eaves line)
- Voids
- Outdoor ground
- Fences
- 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.
# Riverside House: a two-storey family house on a riverside lot. The street is to the north and
# the river to the south, so the house is a long bar with every living room and every bedroom on
# the river side, and the hall, stair and wet rooms on the street side. The living room is double
# height under a landing that overlooks it. A timber terrace and a pool terrace step down to the
# river bank and a jetty.
plan "Riverside House" {
units mm
grid 50
paper A3 portrait
scale 1:100
north up
schedule rooms
site {
street north
hemisphere north
boundary (-3650,-3650) (18050,-3650) (18050,15750) (-3650,15750)
}
# Two cuts: north-south through the double-height living room, east-west through the stair.
section A (2400,-1500)->(2400,10600) look east
section B (-1500,2400)->(15500,2400) look north
# =====================================================================================
# GROUND FLOOR: hall and stair, study, shower room, cloaks, utility on the street
# side; the double-height living room and the kitchen-dining room on the river side.
# =====================================================================================
level 1 "Ground floor" height 3000 {
room id=r_study at (0,0) size 3400x3200 label "Study" uses office floor timber
room id=r_hall at (3400,0) size 4800x3200 label "Hall" uses entry hall floor stone
room id=r_shower at (8200,0) size 2000x1800 label "Shower" uses bath floor tile
room id=r_cloak at (8200,1800) size 2000x1400 label "Cloaks" uses storage floor stone
room id=r_utility at (10200,0) size 4200x3200 label "Utility / pantry" uses utility floor concrete
room id=r_living at (0,3200) size 6000x4800 label "Living" uses living floor timber
room id=r_kitchen at (6000,3200) size 8400x4800 label "Kitchen / Dining" uses kitchen dining floor stone
walls from rooms exterior 300 partition 100 {
open between r_living and r_kitchen
}
# The stair: a flight west along the north wall, a quarter-turn of winders in the corner,
# and a flight south that lands on the first-floor landing.
stair id=st dir up width 1000 {
flight at (4450,150) size 1680x1000
landing at (3450,150) size 1000x1000 winders 3
flight at (3450,1150) size 1000x1680
}
# ---- doors ----
door id=d_front on r_hall.top at 4100 from start width 1000 swing inward
door id=d_shower sliding between r_hall and r_shower at 1000 from start width 800
door id=d_cloak barn between r_hall and r_cloak at 700 from start width 800 swing into r_hall
opening id=o_hall_living between r_hall and r_living at 1800 from start width 1200
door id=d_study between r_living and r_study at 900 from start width 800 swing into r_study
door id=d_utility between r_kitchen and r_utility at 1400 from start width 800 swing into r_utility
door id=d_side on r_utility.top at 1400 from start width 900 swing outward
door id=d_living_terrace glazed_sliding on r_living.bottom at 2400 from start width 3600
door id=d_dining_terrace glazed_sliding on r_kitchen.bottom at 3100 from start width 3000
# ---- dimensions, hand-placed on the building: every `dims auto` mode sets its chains
# outside the whole site, so their extension lines would cross the garden and the river.
# Overall length (north, in the front garden) and depth (west), outer face to outer face.
dim (14550,-150)->(-150,-150) offset 900
dim (-150,-150)->(-150,8150) offset 900
# A chain along the river facade: every jamb of the south openings, read on the terrace.
let SOUTH = [-150, 600, 4200, 4600, 5600, 7600, 10600, 12300, 13500, 14550]
for i in 0..9 {
dim (SOUTH[i],8150)->(SOUTH[i + 1],8150) offset 500
}
# ---- windows ----
window tilt_turn on r_study.top width 1600
window fixed on r_hall.top at 1200 from start width 800
window tilt on r_shower.top at 800 from start width 600 sill 1500
window casement on r_utility.top at 3000 from start width 900
window fixed on r_living.bottom at 5100 from start width 1000
window fixed on r_living.left at 1000 from start width 600
window fixed on r_living.left at 3800 from start width 600
window sliding on r_kitchen.right at 2950 from start width 1200
window casement on r_kitchen.bottom at 6900 from start width 1200
# ---- study (a guest room on the sofa bed) ----
furniture id=f_desk desk against r_study.top offset 2300 size 1400x700 in r_study
furniture office_chair at (2000,1000) size 600x600 facing f_desk in r_study
furniture sofa against r_study.left offset 1200 size 2000x850 in r_study
furniture bookshelf against r_study.right offset 1300 size 1400x350 in r_study
# ---- hall ----
furniture console_table against r_hall.bottom offset 3700 size 1000x350 in r_hall
# ---- shower room, cloaks, utility and pantry ----
furniture shower in r_shower anchor top-right flush size 800x800
furniture basin against r_shower.top offset 500 size 600x450 in r_shower
furniture wc against r_shower.right offset 1350 size 400x700 in r_shower
furniture coat_rack against r_cloak.right offset 500 size 500x500 in r_cloak
furniture shoe_cabinet against r_cloak.bottom offset 1300 size 900x350 in r_cloak
furniture washer against r_utility.right offset 600 in r_utility
furniture dryer against r_utility.right offset 1250 in r_utility
furniture laundry_sink against r_utility.right offset 2050 in r_utility
furniture chest_freezer against r_utility.bottom offset 2850 in r_utility
furniture pantry against r_utility.left offset 1700 size 1400x600 in r_utility
furniture wine_fridge against r_utility.bottom offset 3750 in r_utility
# ---- living: the hearth on the west wall, the sofa facing it ----
furniture id=f_fire fireplace against r_living.left offset 2400 in r_living
furniture rug at (1000,4300) size 2800x2600 in r_living
furniture sofa at (3200,4400) size 900x2400 facing f_fire in r_living
furniture coffee_table id=f_ct at (1900,5000) size 700x1200 in r_living
furniture armchair at (1850,3650) size 800x800 facing f_ct in r_living
furniture floor_lamp at (4300,4300) size 400x400 in r_living
# ---- kitchen run on the east wall (the one hob and the one sink), a breakfast bar, dining ----
furniture fridge against r_kitchen.right offset 500 size 700x700 in r_kitchen
furniture counter against r_kitchen.right offset 1150 size 600x600 in r_kitchen
furniture stove against r_kitchen.right offset 1750 in r_kitchen
furniture range_hood against r_kitchen.right offset 1750 in r_kitchen
furniture counter against r_kitchen.right offset 2250 size 400x600 in r_kitchen
furniture kitchen_sink against r_kitchen.right offset 2950 size 1000x600 in r_kitchen
furniture dishwasher against r_kitchen.right offset 3750 in r_kitchen
furniture counter against r_kitchen.right offset 4350 size 600x600 in r_kitchen
furniture bar_counter at (11550,4600) size 1000x2400 rotate 90 in r_kitchen
furniture id=t_dining table at (8000,5100) size 2200x1000 in r_kitchen
furniture chair at (8150,4500) size 500x500 facing t_dining in r_kitchen
furniture chair at (8850,4500) size 500x500 facing t_dining in r_kitchen
furniture chair at (9550,4500) size 500x500 facing t_dining in r_kitchen
furniture chair at (8150,6200) size 500x500 facing t_dining in r_kitchen
furniture chair at (8850,6200) size 500x500 facing t_dining in r_kitchen
furniture chair at (9550,6200) size 500x500 facing t_dining in r_kitchen
furniture sideboard against r_kitchen.top offset 1100 in r_kitchen
furniture wall_art against r_kitchen.top offset 1100 size 1200x50 in r_kitchen
# ---- the ground ----
# A tight frame: about 3.5 m of garden round the house on the street and the sides, the
# pool terrace straight off the deck, and the river bank right below it.
outdoor id=g_street_w planting at (-3650,-3650) size 10250x1000
outdoor id=g_street_e planting at (8400,-3650) size 6150x1000
outdoor id=g_front_w lawn at (-3650,-2650) size 10250x2500
outdoor id=g_path paving at (6600,-3650) size 1800x3500
outdoor id=g_front_e lawn at (8400,-2650) size 6150x2500
outdoor id=g_drive driveway at (14550,-3650) size 3500x8150 label "Drive"
outdoor id=g_side_w lawn polygon (-3650,-150) (-150,-150) (-150,11150) (3000,11150) (3000,15150) (-3650,15150)
outdoor id=g_side_e lawn polygon (14550,4500) (18050,4500) (18050,15150) (16500,15150) (16500,11150) (14550,11150)
outdoor id=g_terrace deck at (-150,8150) size 14700x3000 label "Terrace"
outdoor id=g_pool_terrace patio at (3000,11150) size 13500x4000 label "Pool terrace"
outdoor id=g_reeds_w planting at (-3650,15150) size 3650x600
outdoor id=g_reeds_e planting at (2400,15150) size 15650x600
outdoor id=g_river water at (-3650,15750) size 21700x2500 label "River"
outdoor id=g_jetty deck at (0,15150) size 2400x2800 label "Jetty"
fence post { (-3650,-2650) (-3650,15150) }
fence post { (18050,4500) (18050,15150) }
fence post { (14550,4500) (15400,4500) }
fence post { (16600,4500) (18050,4500) }
furniture garden_gate at (15400,4500) size 1200x1200
furniture car at (15400,-3200) size 1800x4600
furniture mailbox at (8500,-3500) size 400x300
furniture tree at (-3200,-2400) size 2500x2500
furniture tree at (15500,7000) size 2500x2500
furniture tree at (-3300,11500) size 2500x2500
furniture id=t_out outdoor_table at (11400,9650) size 1800x900
furniture outdoor_chair at (11550,9050) size 500x500 facing t_out
furniture outdoor_chair at (12550,9050) size 500x500 facing t_out
furniture outdoor_chair at (11550,10650) size 500x500 facing t_out
furniture outdoor_chair at (12550,10650) size 500x500 facing t_out
furniture bbq at (13450,9400) size 1000x600
furniture pool at (4500,11550) size 9500x2500
furniture sun_lounger at (5500,14250) size 1900x700
furniture sun_lounger at (8000,14250) size 1900x700
furniture sun_lounger at (10500,14250) size 1900x700
furniture stepping_stones at (800,11300) size 900x3800
furniture fire_pit at (16700,12500) size 1200x1200
furniture boulder at (2000,14200) size 800x600
}
# =====================================================================================
# FIRST FLOOR: three bedrooms on the river side (the main one with a dressing room and an
# ensuite), a family bathroom, linen and a reading room on the street side, and the landing
# that runs out over the double-height living room.
# =====================================================================================
level 2 "First floor" height 3000 {
room id=r_read at (0,0) size 3400x2600 label "Reading room" uses office floor timber
room id=r_landing polygon (3400,0) (6400,0) (6400,2600) (10600,2600) (10600,3800) (4400,3800) (4400,8000) (0,8000) (0,2600) (3400,2600)
label "Landing" uses hall circulation floor timber
room id=r_linen at (6400,0) size 1600x2600 label "Linen" uses storage floor timber
room id=r_bath at (8000,0) size 2600x2600 label "Bathroom" uses bath floor tile
room id=r_dress at (10600,0) size 1600x3800 label "Dressing" uses storage floor carpeting
room id=r_ensuite at (12200,0) size 2200x3800 label "Ensuite" uses bath floor tile
room id=r_bed2 at (4400,3800) size 3000x4200 label "Bedroom 2" uses bedroom floor carpeting
room id=r_bed3 at (7400,3800) size 3200x4200 label "Bedroom 3" uses bedroom floor carpeting
room id=r_master at (10600,3800) size 3800x4200 label "Main bedroom" uses bedroom floor timber
walls from rooms exterior 300 partition 100
stair id=st dir down width 1000 {
flight at (4450,150) size 1680x1000
landing at (3450,150) size 1000x1000 winders 3
flight at (3450,1150) size 1000x1680
}
void id=v_stair polygon (3450,150) (6130,150) (6130,1150) (4450,1150) (4450,2830) (3450,2830) rail 1 2 3
void id=v_living at (150,3900) size 4200x3950 rail top
roof overhang 600
# Overall length and depth of this storey, outer face to outer face.
dim (14550,-150)->(-150,-150) offset 900
dim (-150,-150)->(-150,8150) offset 900
# ---- doors ----
door id=d_read between r_landing and r_read at 2800 from r_read.left width 800 swing into r_read
door id=d_linen between r_landing and r_linen at 800 from r_linen.left width 800 swing into r_linen
door id=d_bath between r_landing and r_bath at 1000 from start width 800 swing into r_bath
door id=d_dress between r_landing and r_dress at 600 from start width 800 swing into r_dress
door id=d_master between r_dress and r_master at 800 from start width 800 swing into r_master
door id=d_ensuite pocket between r_master and r_ensuite at 1350 from start width 800
door id=d_bed2 between r_landing and r_bed2 at 2200 from r_bed2.left width 800 swing into r_bed2
door id=d_bed3 between r_landing and r_bed3 at 600 from start width 800 swing into r_bed3
# ---- windows ----
window casement on r_read.left at 1300 from start width 1000
window fixed on r_landing.top at 1500 from start width 800
window fixed on r_landing.bottom width 3600 sill 300
window tilt on r_bath.top width 800 sill 1400
window tilt on r_ensuite.top width 700 sill 1500
window casement on r_bed2.bottom width 1400
window casement on r_bed3.bottom width 1600
window tilt_turn on r_master.bottom width 2000
# ---- reading room ----
furniture bookshelf against r_read.top offset 1700 size 1800x350 in r_read
furniture armchair at (250,1650) size 800x800 in r_read
furniture id=f_rdesk desk against r_read.right offset 1100 size 1200x600 in r_read
furniture office_chair at (2050,800) size 500x500 facing f_rdesk in r_read
# ---- family bathroom, linen ----
furniture bathtub against r_bath.top offset 1300 size 1700x700 in r_bath
furniture basin against r_bath.left offset 1600 size 600x450 in r_bath
furniture wc against r_bath.right offset 1500 size 400x700 in r_bath
furniture tall_cabinet against r_linen.left offset 1100 size 1200x500 in r_linen
# ---- bedroom 2 ----
furniture double_bed against r_bed2.left offset 2100 size 1400x2000 in r_bed2
furniture nightstand against r_bed2.left offset 1150 in r_bed2
furniture nightstand against r_bed2.left offset 3050 in r_bed2
furniture wardrobe against r_bed2.top offset 1000 size 1200x600 in r_bed2
# ---- bedroom 3 ----
furniture double_bed against r_bed3.right offset 1900 size 1400x2000 in r_bed3
furniture nightstand against r_bed3.right offset 950 in r_bed3
furniture nightstand against r_bed3.right offset 2850 in r_bed3
furniture wardrobe against r_bed3.top offset 2300 size 1400x600 in r_bed3
# ---- main bedroom, dressing, ensuite ----
furniture double_bed against r_master.right offset 1800 size 1800x2000 in r_master
furniture nightstand against r_master.right offset 650 in r_master
furniture nightstand against r_master.right offset 2950 in r_master
furniture armchair at (10900,6900) size 800x800 in r_master
furniture wall_art against r_master.left offset 1800 size 1200x50 in r_master
furniture wardrobe against r_dress.right offset 1500 size 2600x600 in r_dress
furniture shower in r_ensuite anchor top-left flush size 900x1200
furniture bathtub against r_ensuite.right offset 2000 size 1700x700 in r_ensuite
furniture basin against r_ensuite.top offset 1600 size 600x450 in r_ensuite
furniture wc against r_ensuite.left offset 2000 size 400x700 in r_ensuite
}
title {
project "Riverside House"
drawn_by "ArchLang"
date "2026-12-03"
number "SR-01"
revision "A"
}
}