ArchLang Playground

Health Centre — an ArchLang floor plan example

A community health centre on one wide corridor: reception and waiting at the public end and eight identical consulting rooms.

This plan compiles to 19 rooms, 379.44 m² of floor area and 19 windows; every room is reachable from the entrance.

Forecourt 129.7 m² Car park 188.0 m² 1 2 3 4 5 6 7 8 9 A B C D Waiting 44.4 m² Entrance / reception 30.0 m² Accessible WC 7.5 m² Accessible WC / shower 7.5 m² Corridor 59.0 m² Treatment 21.0 m² Recovery 15.0 m² Consult 1 18.0 m² Consult 2 18.0 m² Consult 3 18.0 m² Consult 4 18.0 m² Consult 5 18.0 m² Consult 6 18.0 m² Consult 7 18.0 m² Consult 8 18.0 m² Office 15.0 m² Staff room 18.0 m² Store 8.6 m² Plant 9.4 m² 30900 12700 850 1000 400 1800 400 1000 1750 900 2100 1500 2100 1500 2100 1500 2100 1500 1850 2000 4550 ROOM SCHEDULE NO. NAME AREA (CENTRELINE, m²) NET AREA (m²) Public 01 Waiting 44.40 41.76 02 Entrance / reception 30.00 27.84 03 Accessible WC 7.50 6.96 04 Accessible WC / shower 7.50 6.67 SUBTOTAL 89.40 83.23 Clinical 05 Corridor 59.04 56.12 06 Treatment 21.00 19.68 07 Recovery 15.00 13.44 08 Consult 1 18.00 16.80 09 Consult 2 18.00 16.80 10 Consult 3 18.00 16.80 11 Consult 4 18.00 16.80 12 Consult 5 18.00 16.80 13 Consult 6 18.00 16.80 14 Consult 7 18.00 16.80 15 Consult 8 18.00 16.80 SUBTOTAL 239.04 223.64 Staff 16 Office 15.00 13.92 17 Staff room 18.00 16.80 18 Store 8.64 7.82 19 Plant 9.36 8.16 SUBTOTAL 51.00 46.70 TOTAL 379.44 353.57 N 02 m PROJECTCommunity Health CentreDRAWN BYArchLangDATE2026-12-03DRAWING NO.SR-07REVISIONASCALE1:100
"Health Centre" — a 19-room floor plan, 379.44 m² total: Waiting (44.4 m²), Entrance / reception (30 m²), Accessible WC (7.5 m²), Accessible WC / shower (7.5 m²), Corridor (59.04 m²), Treatment (21 m²), Recovery (15 m²), Consult 1 (18 m²), and 11 more; 19 doors, 19 windows, entrances via d_main, d_exit, and 1 more.
Open in the editor

What this plan uses

The parts of the language this plan's source writes, each linked to its section of the language reference.

The source

This is the whole plan. The drawing above is what the compiler produced from it — nothing was drawn by hand.

# Health Centre: a single-storey community health centre on a street to the south. One
# 2400 mm corridor runs the length of the building; the public end (entrance with reception,
# waiting, accessible WCs) is at the west, eight identical consulting rooms line the corridor
# four a side, and the treatment room, recovery bay, staff room, store and plant room close
# the east end, where a second exit leaves the corridor straight to the side path.
# Accessible first: every door on a patient route is at least 1000 wide, the main entrance is
# an 1800 double door, the corridor is 2300 clear, and both WCs are full accessible rooms.
plan "Health Centre" {
  units mm
  grid 50
  paper A2 landscape
  scale 1:100
  north up
  schedule rooms
  accTitle "Community health centre: ground floor plan"
  accDescr "A single-storey community health centre of about 380 square metres. The entrance and reception are at the south-west, opening to a waiting room. A 2.4 metre corridor runs east past eight identical consulting rooms, four on each side, to a treatment room and recovery bay, a staff room, a store and a plant room, with a second exit at the east end. Two accessible WCs, one with a shower, open off the entrance and the corridor."

  site {
    street south
    hemisphere north
    boundary (-3500,-3500) (34100,-3500) (34100,21000) (-3500,21000)
  }

  # Positioning axes on the structural grid: the facades, the public/clinical line, every
  # consulting-room party wall, and the two corridor walls.
  axes {
    x at 0, 6000, 9000, 12600, 16200, 19800, 23400, 27600, 30600
    y at 0, 5000, 7400, 12400
  }

  # ---- the consulting room, written once ----------------------------------------------
  # Authored in local coords from (0,0): the facade is local y = 0, the corridor wall is
  # local y = 5000. The north row is placed as drawn; the south row with `mirror y`, a real
  # reflection, so its door, its swing and its window land on the corridor and the south
  # facade. Each instance carries its own WEST party wall only; the plan closes the row.
  component consult(no) {
    wall id=w_side partition thickness 100 { (0,0) (0,5000) }
    wall id=w_corr partition thickness 100 { (0,5000) (3600,5000) }
    room id=main at (0,0) size 3600x5000 label "Consult {no}" uses office floor timber
    door id=d on w_corr at 2600 width 1000 swing out

    furniture id=f_desk desk at (300,150) size 1400x700 in main
    furniture office_chair at (650,950) size 600x600 facing f_desk in main
    furniture chair at (1850,300) size 500x500 facing f_desk in main
    furniture hospital_bed at (2850,1350) size 700x1900 label "Couch" in main
    furniture filing_cabinet against main.left offset 2400 size 500x600 in main
    furniture basin against main.left offset 4000 in main
  }

  # ---- the shell and the walls the plan owns ------------------------------------------
  wall id=shell exterior thickness 300 { (0,0) (30600,0) (30600,12400) (0,12400) close }
  wall id=w_corr_n1 partition thickness 100 { (6000,5000) (9000,5000) }
  wall id=w_corr_n2 partition thickness 100 { (23400,5000) (30600,5000) }
  wall id=w_corr_s1 partition thickness 100 { (0,7400) (9000,7400) }
  wall id=w_corr_s2 partition thickness 100 { (23400,7400) (30600,7400) }
  wall id=w_west partition thickness 100 { (6000,0) (6000,7400) }
  wall id=w_west_s partition thickness 100 { (6000,7400) (6000,12400) }
  wall id=w_wc partition thickness 100 { (6000,9900) (9000,9900) }
  wall id=w_treat_w partition thickness 100 { (23400,0) (23400,5000) }
  wall id=w_staff_w partition thickness 100 { (23400,7400) (23400,12400) }
  wall id=w_recov partition thickness 100 { (27600,0) (27600,5000) }
  wall id=w_staff_e partition thickness 100 { (27000,7400) (27000,12400) }
  wall id=w_store partition thickness 100 { (27000,9800) (30600,9800) }

  zone public "Public" {
    room id=r_wait  at (0,0)       size 6000x7400 label "Waiting"       uses hall floor timber
    room id=r_entry at (0,7400)    size 6000x5000 label "Entrance / reception" uses entry floor stone
    room id=r_wc1   at (6000,7400) size 3000x2500 label "Accessible WC" uses wc floor tile
    room id=r_wc2   at (6000,9900) size 3000x2500 label "Accessible WC / shower" uses bath floor tile
  }

  zone clinical "Clinical" {
    room id=r_corr  at (6000,5000)  size 24600x2400 label "Corridor"     uses circulation floor stone
    room id=r_treat at (23400,0)    size 4200x5000  label "Treatment"    uses office floor tile
    room id=r_recov at (27600,0)    size 3000x5000  label "Recovery"     floor tile

    place consult(1) as c1 at (9000,0)
    place consult(2) as c2 at (12600,0)
    place consult(3) as c3 at (16200,0)
    place consult(4) as c4 at (19800,0)
    place consult(5) as c5 at (9000,12400)  mirror y
    place consult(6) as c6 at (12600,12400) mirror y
    place consult(7) as c7 at (16200,12400) mirror y
    place consult(8) as c8 at (19800,12400) mirror y
  }

  zone staff "Staff" {
    room id=r_office at (6000,0)     size 3000x5000 label "Office"     uses office floor timber
    room id=r_staff  at (23400,7400) size 3600x5000 label "Staff room" uses living floor timber
    room id=r_store  at (27000,7400) size 3600x2400 label "Store"      uses storage floor concrete
    room id=r_plant  at (27000,9800) size 3600x2600 label "Plant"      uses utility floor concrete
  }

  # ---- doors ----
  door id=d_main double on r_entry.bottom at 3000 from start width 1800 swing inward
  opening id=o_wait_entry on w_corr_s1 at 3000 width 3600
  opening id=o_wait_corr on w_west at 6200 width 2000
  door id=d_exit on r_corr.right at center width 1200 swing outward
  door id=d_office between r_office and r_corr at 1500 from start width 1000 swing into r_office
  door id=d_wc1 sliding between r_wc1 and r_corr at 2300 from start width 1000 slide left
  door id=d_wc2 sliding between r_wc2 and r_entry at 1650 from start width 1000 slide left
  door id=d_treat double between r_treat and r_corr at 2100 from start width 1600 swing into r_treat
  door id=d_tr_rec sliding between r_treat and r_recov at 3800 from start width 1200
  door id=d_recov sliding between r_recov and r_corr at 1500 from start width 1200
  door id=d_staff between r_staff and r_corr at 1000 from start width 1000 swing into r_staff
  door id=d_store between r_store and r_corr at 700 from start width 1000 swing into r_store
  door id=d_plant on r_plant.right at 1800 from start width 1000 swing outward

  # ---- windows ----
  # One casement per consulting room on each long facade, on the room's centre line: the
  # rooms are on 3600 centres from x = 9000 (the shell is the plan's, not the component's).
  for i in 0..4 {
    window casement on shell at 10800 + i * 3600 width 1500
    window casement on shell at 2 * 30600 + 12400 - (10800 + i * 3600) width 1500
  }
  window fixed on r_wait.top at 3000 from start width 3600 sill 450
  window fixed on r_wait.left at 3700 from start width 2400 sill 450
  window fixed on r_entry.bottom at 1200 from start width 1000
  window fixed on r_entry.bottom at 4800 from start width 1000
  window casement on r_office.top width 1200
  window tilt on r_wc2.bottom width 900 sill 1500
  window casement on r_treat.top width 1800
  window casement on r_recov.top width 1500
  window casement on r_recov.right at 2500 from start width 1200
  window sliding on r_staff.bottom width 2000
  window tilt on r_store.right width 900 sill 1500

  # ---- entrance and reception ----
  furniture id=f_recept reception_desk at (4200,8000) size 800x2000 in r_entry
  furniture office_chair at (5250,8700) size 600x600 facing f_recept in r_entry
  furniture bench against r_entry.left offset 2500 size 1600x450 in r_entry
  furniture plant at (300,11500) size 600x600 in r_entry
  furniture plant at (300,7700) size 600x600 in r_entry

  # ---- waiting ----
  furniture bench against r_wait.top offset 1100 size 1800x450 in r_wait
  furniture bench against r_wait.top offset 4900 size 1800x450 in r_wait
  furniture bench against r_wait.left offset 2600 size 1800x450 in r_wait
  furniture sofa against r_wait.right offset 2500 size 2000x850 in r_wait
  furniture id=f_wct coffee_table at (3800,1800) size 600x1000 in r_wait
  furniture chair at (3050,1850) size 500x500 facing f_wct in r_wait
  furniture chair at (3050,2450) size 500x500 facing f_wct in r_wait
  furniture plant at (300,6300) size 600x600 in r_wait

  # ---- accessible WCs ----
  furniture wc against r_wc1.right offset 2000 size 400x700 in r_wc1
  furniture basin against r_wc1.bottom offset 1000 in r_wc1
  furniture wc against r_wc2.right offset 450 size 400x700 in r_wc2
  furniture basin against r_wc2.top offset 1200 in r_wc2
  furniture shower in r_wc2 anchor bottom-right flush size 1000x1000

  # ---- office ----
  furniture id=f_odesk desk against r_office.top offset 1500 size 1600x700 in r_office
  furniture office_chair at (7200,1050) size 600x600 facing f_odesk in r_office
  furniture filing_cabinet against r_office.right offset 2600 size 500x600 in r_office
  furniture filing_cabinet against r_office.right offset 3200 size 500x600 in r_office

  # ---- treatment and recovery ----
  furniture hospital_bed against r_treat.right offset 2000 in r_treat
  furniture id=f_tdesk desk against r_treat.top offset 900 size 1200x600 in r_treat
  furniture office_chair at (24000,850) size 500x500 facing f_tdesk in r_treat
  furniture counter against r_treat.left offset 2200 size 1600x600 in r_treat
  furniture basin against r_treat.left offset 3600 in r_treat
  furniture hospital_bed against r_recov.right offset 1500 in r_recov
  furniture chair at (28000,3000) size 500x500 in r_recov

  # ---- staff room ----
  furniture fridge against r_staff.right offset 700 in r_staff
  furniture counter against r_staff.right offset 1500 size 800x600 in r_staff
  furniture kitchen_sink against r_staff.right offset 2400 size 1000x600 in r_staff
  furniture counter against r_staff.right offset 3400 size 1000x600 in r_staff
  furniture sofa against r_staff.bottom offset 1500 size 2000x850 in r_staff
  furniture coffee_table at (24000,10000) size 1000x600 in r_staff

  # ---- store and plant ----
  furniture filing_cabinet against r_store.bottom offset 1800 size 3000x500 in r_store
  furniture water_heater against r_plant.left offset 700 in r_plant

  # ---- dimensions on the building ----
  dim (30750,-150)->(-150,-150) offset 900
  dim (-150,-150)->(-150,12550) offset 900
  # A chain along the street facade: every jamb of the south openings, read on the forecourt.
  let SOUTH = [-150, 700, 1700, 2100, 3900, 4300, 5300, 7050, 7950, 10050, 11550, 13650, 15150, 17250, 18750, 20850, 22350, 24200, 26200, 30750]
  for i in 0..19 {
    dim (SOUTH[i],12550)->(SOUTH[i + 1],12550) offset 600
  }

  # ---- the ground ----
  # A garden strip behind the consulting rooms, a lawn to the west, a side path from the east
  # exit, and on the street side a paved forecourt and the car park, with the two accessible
  # bays (3600 wide, transfer zone included) straight in front of the main doors.
  outdoor id=g_hedge planting at (-3500,-3500) size 37600x1200
  outdoor id=g_lawn_n lawn at (-3500,-2300) size 34250x2150
  outdoor id=g_lawn_w lawn at (-3500,-150) size 3350x12700
  outdoor id=g_path_e paving at (30750,-2300) size 3350x14850
  outdoor id=g_forecourt paving at (-3500,12550) size 37600x3450 label "Forecourt"
  outdoor id=g_carpark driveway at (-3500,16000) size 37600x5000 label "Car park"

  furniture car at (900,16200) size 1800x4600
  furniture car at (4500,16200) size 1800x4600
  for i in 0..4 {
    furniture car at (12850 + i * 2500,16200) size 1800x4600
  }
  for i in 0..8 {
    furniture bollard at (-2000 + i * 1200,15700) size 300x300
  }
  furniture bike_rack at (8600,14200) size 2000x600
  furniture bench at (-2200,13300) size 1600x450
  furniture tree at (-3200,500) size 2500x2500
  furniture tree at (-3200,8000) size 2500x2500
  furniture tree at (31200,13000) size 2500x2500
  furniture tree at (31300,-3200) size 2500x2500

  title {
    project "Community Health Centre"
    drawn_by "ArchLang"
    date "2026-12-03"
    number "SR-07"
    revision "A"
  }
}

More in Public buildings

Read more