City Apartment — an ArchLang floor plan example
A one-bedroom city flat whose open living-kitchen and bedroom take the sunny side and open onto a long balcony.
This plan compiles to 7 rooms, 71.28 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 from rooms
- Rooms
- Polygonal rooms
- Doors
- Windows
- 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.
# City Apartment: a one-bedroom flat on the fourth floor of a city block. The common stair
# and lift are to the north, the street and the sun to the south. The entrance hall, the
# bathroom, a guest WC and a laundry store line the north side; the bedroom and the
# open living-kitchen take the whole south facade and both open onto a long balcony.
plan "City Apartment" {
units mm
grid 50
paper A3 landscape
scale 1:50
north up
schedule rooms
level 4 "Fourth floor" height 2900 {
room id=r_dress at (0,0) size 2000x2600 label "Dressing" uses storage floor timber
room id=r_bath at (2000,0) size 2200x2600 label "Bathroom" uses bath floor tile
room id=r_hall at (4200,0) size 1800x2600 label "Hall" uses entry hall floor stone
room id=r_wc at (6000,0) size 1600x1400 label "WC" uses wc floor tile
room id=r_store at (6000,1400) size 1600x1200 label "Laundry" uses storage utility floor concrete
room id=r_bed at (0,2600) size 4200x4000 label "Bedroom" uses bedroom floor carpeting
room id=r_live polygon (7600,0) (10800,0) (10800,6600) (4200,6600) (4200,2600) (7600,2600)
label "Living / Kitchen" uses living kitchen dining floor timber
walls from rooms exterior 300 partition 100 {
open between r_hall and r_live width 1200
}
# ---- doors ----
door id=d_front on r_hall.top at center width 1000 swing inward
door id=d_bath between r_hall and r_bath at 2050 from start width 800 swing into r_bath
door id=d_wc sliding between r_hall and r_wc at 750 from start width 800
door id=d_store between r_hall and r_store at center width 800 swing into r_store
door id=d_bed between r_live and r_bed at 550 from start width 800 swing into r_bed
door id=d_dress pocket between r_bed and r_dress at 1400 from start width 800
door id=d_balcony glazed_sliding on r_live.bottom at 5100 from start width 2400
door id=d_bed_balcony glazed_sliding on r_bed.bottom at 2700 from start width 2000
# ---- windows ----
window casement on r_live.top at 1450 from start width 900
window fixed on r_live.bottom at 1100 from start width 1200
window tilt_turn on r_live.right at 4900 from start width 1000
window tilt on r_bath.top at 1000 from start width 700 sill 1500
window tilt on r_wc.top at 500 from start width 500 sill 1500
window casement on r_bed.left at 800 from start width 1200
window fixed on r_dress.top at 1300 from start width 600 sill 1500
# ---- dimensions, hand-placed on the flat: overall length (north, over the common
# corridor) and depth (west), outer face to outer face, and a chain of every jamb on the
# south facade, read beyond the balcony.
dim (10950,-150)->(-150,-150) offset 900
dim (-150,-150)->(-150,6750) offset 900
let SOUTH = [-150, 1700, 3700, 4700, 5900, 8100, 10500, 10950]
for i in 0..7 {
dim (SOUTH[i],6750)->(SOUTH[i + 1],6750) offset 2100
}
# ---- the balcony: the whole south front, 1.5 m deep ----
outdoor id=g_balcony balcony at (0,6750) size 10800x1500 label "Balcony"
# ---- hall ----
furniture shoe_cabinet against r_hall.left offset 900 size 1000x300 in r_hall
# ---- bathroom ----
furniture bathtub against r_bath.top offset 900 size 1700x750 in r_bath
furniture basin against r_bath.right offset 1250 size 600x450 in r_bath
furniture mirror against r_bath.right offset 1250 size 600x50 in r_bath
furniture wc against r_bath.bottom offset 550 in r_bath
furniture bidet against r_bath.bottom offset 1150 in r_bath
furniture towel_rail against r_bath.left offset 1800 size 500x100 in r_bath
# ---- WC and laundry ----
furniture wc against r_wc.right offset 900 in r_wc
furniture basin against r_wc.top offset 1050 size 450x350 in r_wc
furniture washer against r_store.right offset 850 in r_store
furniture water_heater against r_store.top offset 1300 size 500x500 in r_store
# ---- dressing ----
furniture wardrobe against r_dress.left offset 1250 size 2100x600 in r_dress
furniture vanity against r_dress.right offset 1000 size 1000x450 in r_dress
# ---- bedroom: the bed's head on the living-room wall, both sides free ----
furniture rug at (1650,3750) size 2300x2400 in r_bed
furniture id=f_bed bed against r_bed.right offset 2150 size 1600x2000 in r_bed
furniture nightstand against r_bed.right offset 1150 size 400x400 in r_bed
furniture nightstand against r_bed.right offset 3150 size 400x400 in r_bed
furniture wall_ac against r_bed.right offset 2150 in r_bed
furniture radiator against r_bed.left offset 800 size 1000x100 in r_bed
furniture tv against r_bed.left offset 2150 size 1200x100 in r_bed
furniture dresser against r_bed.left offset 3250 size 1000x450 in r_bed
# ---- kitchen: an L on the north and east walls ----
furniture fridge against r_live.top offset 350 in r_live
furniture counter against r_live.top offset 850 size 400x600 in r_live
furniture kitchen_sink against r_live.top offset 1450 size 800x600 in r_live
furniture dishwasher against r_live.top offset 2150 in r_live
furniture upper_cabinet against r_live.top offset 850 size 400x350 in r_live
furniture upper_cabinet against r_live.top offset 2150 size 600x350 in r_live
furniture counter against r_live.right offset 450 in r_live
furniture stove against r_live.right offset 1050 in r_live
furniture range_hood against r_live.right offset 1050 size 600x500 in r_live
furniture oven against r_live.right offset 1650 size 600x600 in r_live
furniture microwave against r_live.right offset 2200 in r_live
# ---- dining ----
furniture id=t_dining table at (8000,2300) size 1600x900 in r_live
furniture chair at (8200,1750) size 500x500 facing t_dining in r_live
furniture chair at (8900,1750) size 500x500 facing t_dining in r_live
furniture chair at (8200,3250) size 500x500 facing t_dining in r_live
furniture chair at (8900,3250) size 500x500 facing t_dining in r_live
# ---- lounge: the TV on the bedroom wall, the corner sofa facing it ----
furniture rug at (4900,3600) size 2600x2400 in r_live
furniture id=f_tvu tv_unit against r_live.left offset 2200 size 1800x450 in r_live
furniture sofa_l at (6300,3500) size 1600x2600 facing f_tvu in r_live
furniture coffee_table at (5250,4200) size 700x1200 in r_live
furniture ottoman at (5300,3450) size 500x500 in r_live
furniture side_table at (6350,3050) size 450x450 in r_live
furniture display_cabinet at (6100,2650) size 1000x400 in r_live
furniture chaise at (4850,5750) size 1400x700 rotate 180 in r_live
furniture potted_tree at (4300,5900) size 500x500 in r_live
furniture plant at (7150,2700) size 400x400 in r_live
# ---- the daybed nook by the east window, screened from the lounge ----
furniture daybed at (9750,3800) size 900x2000 rotate 90 in r_live
furniture folding_screen at (7950,3900) size 300x1500 rotate 90 in r_live
furniture bean_bag at (8450,4200) size 800x800 in r_live
# ---- balcony ----
furniture condenser at (300,6800) size 850x350
furniture loveseat at (4700,6800) size 1500x850
furniture id=t_balc outdoor_table at (6500,7000) size 700x700
furniture outdoor_chair at (7300,7100) size 500x500 facing t_balc
furniture plant at (10200,7700) size 450x450
furniture plant at (2000,7700) size 450x450
}
title {
project "City Apartment"
drawn_by "ArchLang"
date "2026-12-03"
number "SR-02"
revision "A"
}
}
More in Homes
- 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.
- 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.