Courtyard Home — an ArchLang floor plan example
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.
This plan compiles to 12 rooms, 171.33 m² of floor area and 18 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
- Site and orientation
- The lot line (boundary)
- Bindings (let)
- Control flow (for, if, while)
- Walls
- Walls from rooms
- Rooms
- Polygonal rooms
- Curved walls (arc edges)
- Doors
- Windows
- Openings
- Furniture
- Dimensions
- Outdoor ground
- Fences
- Title block
- Sheet tables (schedules, legend, notes)
- Levels (storeys)
- Zones
The source
This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.
# Courtyard Home: a single-storey family house for a couple with young children, wrapped round
# a paved courtyard with a rill pool and a bamboo bed. The street is to the north and the garden
# to the south, so the plan is arranged by aspect. The living room (opening wide off the entry)
# and the music and play room (open to the family kitchen, so the children play in sight of it)
# sit on the courtyard's north side and take their south light across it; the main bedroom, the
# nursery and the kids' room take the south (garden) facade; the family kitchen-dining room runs
# down the east side from the courtyard to a bowed window bay on an arc wall, whose glazed double
# doors open onto the terrace. A glazed gallery wraps the courtyard on the west and south and
# links the entry with every bedroom. Wet rooms, the boot room and the study take the west and
# street sides. The garden holds a play lawn, a terrace with a pergola, and a hot tub.
plan "Courtyard Home" {
units mm
grid 50
paper A3 portrait
scale 1:100
north up
schedule rooms
site {
street north
hemisphere north
boundary (-3500,-4000) (19000,-4000) (19000,19000) (-3500,19000)
}
level 1 "Ground floor" height 3000 {
# =====================================================================================
# ROOMS. Rectangles and rectilinear polygons, except the study (a chamfered street corner)
# and the kitchen-dining room (its bowed bay is an arc edge), whose outer walls are typed by hand.
# =====================================================================================
room id=r_wc at (0,0) size 1800x1700 label "WC" uses wc floor tile
room id=r_boot at (0,1700) size 1800x2300 label "Boot room" uses utility floor tile
room id=r_hall polygon (1800,0) (4500,0) (4500,7800) (11000,7800) (11000,9200) (3000,9200) (3000,4000) (1800,4000)
label "Entry / gallery" at (3150,2400) uses entry hall circulation floor stone
room id=r_living at (4500,0) size 4500x4000 label "Living" uses living floor timber
room id=r_music at (9000,0) size 4000x4000 label "Music / play" uses living floor timber
room id=r_study polygon (13000,0) (13500,0) (15500,2000) (15500,4000) (13000,4000)
label "Study" uses office floor timber
room id=r_bath at (0,4000) size 3000x2200 label "Family bath" uses bath floor tile
room id=r_ens at (0,6200) size 3000x1800 label "Ensuite" uses bath floor tile
room id=r_main polygon (0,8000) (3000,8000) (3000,9200) (4500,9200) (4500,12500) (0,12500)
label "Main bedroom" uses bedroom floor timber
zone kids "Kids' wing" {
room id=r_nursery at (4500,9200) size 3000x3300 label "Nursery" uses bedroom floor carpeting
room id=r_kids at (7500,9200) size 3500x3300 label "Kids' room" uses bedroom floor carpeting
}
room id=r_kitch polygon (11000,4000) (15500,4000) (15500,12500) (15250,12500) arc (11250,12500) radius 2100 cw (11000,12500)
label "Kitchen / dining" uses kitchen dining floor stone
# The courtyard is a hole in the building, covered exactly by three ground surfaces: a
# bamboo bed beside the living room's courtyard doors, a rill pool along the gallery, and the paved court.
outdoor id=g_court_plant planting at (4500,4000) size 2000x1000
outdoor id=g_court_pool water at (4500,6800) size 2500x1000 label "Rill pool"
outdoor id=g_court patio polygon (6500,4000) (11000,4000) (11000,7800) (7000,7800) (7000,6800) (4500,6800) (4500,5000) (6500,5000)
label "Courtyard"
walls from rooms exterior 300 partition 100 { except r_study r_kitch }
# The walls `walls from rooms` cannot derive: the study's chamfered street corner, and the
# kitchen-dining room's courtyard side and its east and south sides with the bowed bay. Their
# other sides are the derived exterior ring.
wall id=w_study exterior thickness 300 { (13000,0) (13500,0) (15500,2000) (15500,4000) }
wall id=w_kcourt exterior thickness 300 { (11000,4000) (11000,7800) }
wall id=w_study_k partition thickness 100 { (13000,4000) (15500,4000) }
wall id=w_kitch exterior thickness 300 {
(15500,4000) (15500,12500) (15250,12500)
arc (11250,12500) radius 2100 cw
(11000,12500)
}
# =====================================================================================
# DOORS
# =====================================================================================
door id=d_front on r_hall.top at 1350 from start width 1000 swing inward
door id=d_wc between r_hall and r_wc at 800 from start width 800 swing into r_wc
door id=d_boot between r_hall and r_boot at 1150 from start width 800 swing into r_boot
door id=d_side on r_boot.left at 1150 from start width 900 swing outward
# The living room opens wide off the entry hall.
opening id=o_living_hall between r_hall and r_living at 2600 from start width 1600
door id=d_bath between r_hall and r_bath at 1100 from r_bath.top width 800 swing into r_bath
door id=d_main between r_hall and r_main at 750 from r_main.right width 800 swing into r_main
door id=d_ens between r_main and r_ens at 2300 from start width 800 swing into r_ens
door id=d_nursery between r_hall and r_nursery at 2300 from start width 800 swing into r_nursery
door id=d_link between r_main and r_nursery at 2300 from start width 800 swing into r_main
door id=d_kids between r_hall and r_kids at 600 from start width 800 swing into r_kids
opening id=o_gallery at (11000,8550) width 900 wall exterior
# Glazed double doors between the music room and the living room.
door id=d_music_living double between r_living and r_music at 2000 from start width 1400 swing into r_music
# The play room opens to the kitchen-dining room across the full clear width between walls.
opening id=o_play_kitchen at (12000,4000) width 1400 wall exterior
door id=d_study at (14700,4000) width 800 wall w_study_k swing into r_study
# The bay's glazed double doors (a curved wall takes only hinged or double doors) open to
# the terrace. The arc starts 8750 mm along the wall's run and is 5296 mm long.
door id=d_terrace double on w_kitch at 11398 width 1400 swing outward
# Onto the courtyard: sliders from the gallery and the dining end, a bifold from the living room.
door id=d_court_g glazed_sliding at (4500,5900) width 1600 wall exterior
door id=d_court_k glazed_sliding at (11000,6700) width 1400 wall exterior
door id=d_court_l bifold at (7500,4000) width 1800 wall exterior swing into r_living
# =====================================================================================
# DIMENSIONS: hand-placed on the building only (overall length, overall depth, and a chain
# of jambs along the street facade).
# =====================================================================================
dim (15650,-150)->(-150,-150) offset 1700
dim (-150,-150)->(-150,12650) offset 700
let NORTH = [-150, 600, 1200, 2650, 3650, 6050, 7450, 10400, 11600, 13000]
for i in 0..9 {
dim (NORTH[i + 1],-150)->(NORTH[i],-150) offset 700
}
# =====================================================================================
# WINDOWS: casement, fixed, tilt, tilt-turn and sliding
# =====================================================================================
window tilt on r_wc.top width 600 sill 1500
window fixed on r_hall.top at 2250 from start width 400
window tilt_turn on r_living.top width 1400
window casement on r_music.top width 1200
window fixed on w_study at 1914 width 1800 sill 300
window casement on w_study at 4328 width 900
window sliding at (5500,4000) width 1400 wall exterior sill 600
window tilt on r_bath.left at 1100 from start width 800 sill 1400
window tilt on r_ens.left at 900 from start width 600 sill 1500
window casement on r_main.left at 1200 from start width 1000
window tilt_turn on r_main.bottom at 2400 from start width 1600
window casement on r_nursery.bottom width 1400
window tilt_turn on r_kids.bottom at 1400 from start width 1600
window sliding at (9900,4000) width 1400 wall exterior sill 600
window sliding on w_kitch at 2800 width 1600
window casement on w_kitch at 7050 width 1000 sill 1050
window fixed on w_kitch at 10100 width 800 sill 450
window fixed on w_kitch at 12696 width 800 sill 450
# =====================================================================================
# FURNITURE
# =====================================================================================
# ---- WC, boot room, entry ----
furniture wc against r_wc.left offset 850 size 400x700 in r_wc
furniture basin against r_wc.bottom offset 1200 size 500x400 in r_wc
furniture shoe_cabinet against r_boot.top offset 900 size 900x350 in r_boot
furniture washer against r_boot.bottom offset 500 in r_boot
furniture coat_rack at (1300,3450) size 400x400 in r_boot
# ---- music and play ----
furniture piano against r_music.right offset 1350 size 1500x600 in r_music
furniture stool at (11750,1150) size 400x400 in r_music
furniture id=t_play table at (9900,2000) size 1200x800 in r_music
furniture stool at (10100,2900) size 400x400 in r_music
furniture stool at (10700,2900) size 400x400 in r_music
furniture bean_bag at (9900,300) size 800x800 in r_music
# ---- living ----
furniture id=f_ct coffee_table at (6150,1500) size 1200x600 in r_living
furniture sofa at (5650,300) size 2200x850 in r_living
furniture armchair at (7800,1400) size 800x800 facing f_ct in r_living
furniture armchair at (5000,1400) size 800x800 facing f_ct in r_living
furniture floor_lamp at (8350,300) size 400x400 in r_living
# ---- study ----
furniture id=f_desk desk at (13150,700) size 700x1400 rotate 90 in r_study
furniture office_chair at (13850,1250) size 550x550 facing f_desk in r_study
furniture bookshelf at (13250,3600) size 1000x350 rotate 180 in r_study
# ---- family bath and ensuite ----
furniture bathtub against r_bath.left offset 1100 size 1700x700 in r_bath
furniture basin against r_bath.top offset 1500 size 600x450 in r_bath
furniture wc against r_bath.bottom offset 1500 size 400x700 in r_bath
furniture shower in r_ens anchor top-left flush size 900x900
furniture basin against r_ens.top offset 1700 size 600x450 in r_ens
furniture wc against r_ens.bottom offset 1000 size 400x700 in r_ens
# ---- main bedroom ----
furniture double_bed against r_main.left offset 2700 size 1600x2000 in r_main
furniture nightstand against r_main.left offset 1550 in r_main
furniture nightstand against r_main.left offset 3850 in r_main
furniture wardrobe against r_main.top offset 1000 size 1600x600 in r_main
# ---- nursery ----
furniture crib against r_nursery.right offset 1800 in r_nursery
furniture dresser against r_nursery.top offset 800 size 1000x500 in r_nursery
furniture armchair at (5400,11500) size 700x700 in r_nursery
# ---- kids' room ----
furniture bunk_bed against r_kids.right offset 2400 in r_kids
furniture wardrobe against r_kids.top offset 2500 size 1200x600 in r_kids
furniture id=t_kids table at (7750,10700) size 1100x800 in r_kids
furniture stool at (7900,11600) size 400x400 in r_kids
furniture stool at (8400,11600) size 400x400 in r_kids
# ---- kitchen / dining ----
furniture id=t_dining dining_table at (12750,4900) size 1000x2200 in r_kitch
furniture fridge against wall w_kitch segment 0 offset 4500 size 700x700 in r_kitch
furniture counter against wall w_kitch segment 0 offset 5100 size 500x600 in r_kitch
furniture stove against wall w_kitch segment 0 offset 5650 size 600x600 in r_kitch
furniture range_hood against wall w_kitch segment 0 offset 5650 size 600x500 in r_kitch
furniture counter against wall w_kitch segment 0 offset 6250 size 600x600 in r_kitch
furniture kitchen_sink against wall w_kitch segment 0 offset 7050 size 1000x600 in r_kitch
furniture dishwasher against wall w_kitch segment 0 offset 7850 size 600x600 in r_kitch
# A free-standing breakfast bar (it draws its own stools) facing the dining end; the one
# hob and the one sink stay on the wall run.
furniture bar_counter at (12700,8700) size 1000x2400 rotate 90 in r_kitch
# =====================================================================================
# THE GROUND
# =====================================================================================
outdoor id=g_front_w lawn at (-3500,-4000) size 6150x3850
outdoor id=g_path paving at (2650,-4000) size 1000x3850
outdoor id=g_front_e lawn polygon (3650,-4000) (19000,-4000) (19000,12650) (15650,12650) (15650,2000) (13500,-150) (3650,-150)
outdoor id=g_yard_w paving at (-3500,-150) size 3350x5150 label "Yard"
outdoor id=g_side_w lawn at (-3500,5000) size 3350x7650
outdoor id=g_terrace patio polygon (8500,12650) (11150,12650) (11300,13000) (11650,13450) (12100,13800) (12650,14050)
(13250,14100) (13850,14050) (14400,13800) (14850,13450) (15200,13000) (15350,12650) (19000,12650)
(19000,16000) (8500,16000) label "Terrace"
outdoor id=g_garden lawn polygon (-3500,12650) (8500,12650) (8500,16000) (19000,16000) (19000,19000) (-3500,19000)
label "Garden"
fence picket { (-3500,-4000) (2650,-4000) }
fence picket { (3650,-4000) (19000,-4000) }
fence panel { (-3500,-4000) (-3500,19000) }
fence panel { (19000,-4000) (19000,19000) }
# ---- the courtyard ----
furniture bamboo at (4650,4200) size 900x600
furniture bamboo at (5550,4200) size 900x600
furniture potted_tree at (9800,6900) size 700x700
furniture potted_tree at (7300,5200) size 700x700
furniture bench at (7300,7150) size 1600x450
# ---- the street side and the yard ----
furniture climber at (5000,-450) size 1200x300 rotate 180
furniture climber at (9800,-450) size 1200x300 rotate 180
furniture shrub at (-2800,-3300) size 1200x1200
furniture shrub at (5500,-3300) size 1200x1200
furniture conifer at (16500,-3300) size 1500x1500
furniture bin at (-3200,-100) size 600x700 rotate 90
furniture bin at (-3200,600) size 600x700 rotate 90
furniture bicycle at (-3300,3700) size 1800x600
furniture bicycle at (-3300,4300) size 1800x600 mirror
furniture clothesline at (-3300,7200) size 2200x2200
# ---- the east side ----
furniture hot_tub at (16400,8300) size 2000x2000
furniture palm at (16700,4600) size 1500x1500
# ---- the terrace ----
furniture pergola at (15800,12900) size 2900x2900
furniture id=t_out outdoor_table at (9200,13700) size 1600x900
furniture outdoor_chair at (9400,13100) size 500x500 facing t_out
furniture outdoor_chair at (10100,13100) size 500x500 facing t_out
furniture outdoor_chair at (9400,14700) size 500x500 facing t_out
furniture outdoor_chair at (10100,14700) size 500x500 facing t_out
furniture umbrella at (6000,13000) size 2000x2000
# ---- the play garden ----
furniture trampoline at (-2800,13300) size 3000x3000
furniture sandpit at (1300,13400) size 2000x2000
furniture swing at (1000,16500) size 3500x1600
for i in 0..4 {
furniture flower_bed at (8700 + i * 2100,16200) size 2000x800
}
for i in 0..11 {
furniture hedge at (-3300 + i * 2000,18300) size 2000x600
}
furniture conifer at (17300,16600) size 1500x1500
furniture shrub at (6200,16900) size 1200x1200
}
title {
project "Courtyard Home"
drawn_by "ArchLang"
date "2026-12-03"
number "SR-03"
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.
- Flat Renovation (status): 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.
- 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.