This page is generated from
docs/furniture.md— edit it there.
Furniture & Fixtures
furniture places a piece of furniture or a built-in fixture into a plan. Every catalogued kind draws a real plan symbol — a WC with a cistern and a seat, a bed with a headboard and pillows, a wardrobe with its hanging rail and hangers — in the same drawing vocabulary as the door arcs and window panes. Anything ArchLang doesn't know still renders as a labelled rectangle, which is the escape hatch for a piece the catalogue has no word for. The label is drawn only inside the rectangle: upright when it fits, turned along a tall piece when only that fits, and otherwise not drawn at all (describe still lists it).
Where you put it matters to the soundness checks: the linter knows a WC should have its back to a wall, that a bath needs a wet fixture, and that a door leaf should not sweep across a basin.
This page covers the placement modes, the symbol catalogue, how a symbol is oriented and sized, the importable fixture library, and the lint rules that key off furniture. The one-line grammar lives in the language reference.
Three placement modes
A piece is positioned absolutely by its top-left corner, snapped against a wall so its back sits on the wall face, or anchored inside a room's box. The two non-absolute modes derive the piece's rotation for you.
| Mode | Grammar | You give | ArchLang derives |
|---|---|---|---|
| Absolute | furniture <kind> at (x,y) [size <w>x<h>] [rotate 0|90|180|270] [in <room>] | corner, footprint (optional for a kind that has one), optional quarter-turn | nothing — what you write is what's drawn, plus the footprint, turned by rotate, if the kind has one and you omit size |
| Against wall | furniture <kind> against wall <ref> [segment <n>] [offset <mm>] [side left|right] [size <along>x<depth>] [in <room>] | which wall, how far along, optionally a depth | the position and the rotation, from the wall — plus the footprint, if the kind has one and you omit size |
| In a room | furniture <kind> in <room> centered|anchor <a> [flush] [inset <mm>] [size <w>x<h>] [rotate …] | which room, which corner/edge, footprint (optional for a kind that has one) | the position from the room's box (or, with flush, from the backing wall's face), and — for a kind whose facing means something — the rotation from the wall the anchor names; with size omitted, the footprint, laid along that wall |
| Against a room edge | furniture <kind> against <room>.<edge> [offset <mm>] [size <along>x<depth>] | which room edge, how far along | the position and the rotation, from the wall standing on that edge (a derived wall too) or the edge line |
arch
# Absolute: a bed in the top-left, turned a quarter turn so its head is on the left wall.
furniture bed at (4300,300) size 1500x2000 rotate 90 in r_bed
# Against a wall: a 600-mm-deep counter run 1800 mm long, snapped to the north wall,
# starting 300 mm in from the wall's start, sitting on the interior (room) side.
furniture counter against wall north offset 300 side left size 1800x600 in r_kitchen
# Against a wall with NO size: the catalogued footprint is used (a fridge is 600 along
# the wall by 650 deep), so the only numbers left are the ones this plan chooses.
furniture fridge against wall w_west offset 400 in r_kitchen
# In a room: a WC on the bathroom's south edge — `rotate 180` (cistern to that wall) is
# derived, and `flush` puts its back on that wall's inner face (no thickness to work out).
furniture wc in r_bath anchor bottom flush size 400x700rotateturns the footprint a whole quarter-turn about its centre (0,90,180, or270— any other value isE_FURN_ROTATE). It is exact integer geometry, so the output stays byte-stable.against wall <ref>snaps the piece's back onto a wall named byidor kind.segment <n>selects which leg of a multi-point wall (0-based) to sit against.offset <mm>slides the piece along that segment from its start.side left|rightpicks which face of the wall to sit on (relative to the segment's direction); when you also givein <room>, the interior side is inferred for you.sizemay be omitted for any kind with a catalogued footprint (the "Footprint" column below) — it is read asalong × depth, along the wall and into the room. A kind with no footprint and nosizeisE_FURN_SIZE, under every placement.- The rotation is derived from the wall, so combining
againstwith an explicitrotateis an error (E_FURN_AGAINST).
sizemay be omitted underatandin <room>too, for a kind with a catalogued footprint; the planw × hit stands for is the footprint at the piece's quarter-turn.at (x,y)draws it with the back north atrotate 0(alongacross,depthdown: a WC is 400 × 700), its two sides swapped underrotate 90or270(700 × 400).in <room> anchor <edge>lays it along the wall it backs onto: when exactly one edge the anchor names has a wall behind it, and the kind's facing means something, the back goes on that edge and the rotation is derived from it, sofurniture wc in bath anchor rightis a 700 × 400 WC atrotate 90, the same piece as writingsize 700x400. Otherwise (no walled edge, a corner walled on both edges, a writtenrotateorfacing, or a kind whose facing means nothing, such as asofa_lor ahedge) it takes the footprint atrotate 0, turned by anyrotate, and the derivation below reads it as it reads a written size.spec.llm.mdlists the two groups of kinds.facing <id>is settled after the piece is placed, so it reads the footprint atrotate 0; a turn that would put the back on the footprint's short side isE_FACING_TRANSPOSED, which names thesizeto write.- Under a
gridthe footprint snaps as a written size does, withW_GRID_SNAPPEDwhen that moves it (underagainsttoo); a side that snaps to nothing isE_FURN_SIZEunderatandin, and underagainstaW_GRID_SNAPPEDthat names the side (a written size that snaps to nothing isE_FURN_SIZEunder every placement).
in <room>records the owning room (byid). A trailingin <room>doesn't move the piece — it lets the linter check the piece is actually inside that room and letsagainstinfer the interior side. A non-existent id isE_FURN_ROOM. The leading form (in <room> centered\|anchor …) both positions and owns the piece.flushmeasures the inset from the wall FACE. A room's rectangle runs along wall centerlines, soanchor bottomalone leaves the piece's back half a wall thickness inside the solid — which is why you would otherwise writeinset 100for a 200-mm wall you never named (W_FURNITURE_WALL_COLLISIONif you forget).flushre-basesinset(default still0) onto the inner face of the wall behind each anchored edge — centerline + thickness / 2, toward the room — soanchor bottom flushlands on the plaster andanchor bottom flush inset 50sits 50 mm off it. It applies per edge and independently (a corner anchor can be flush on one edge only), an anchored edge with no wall behind it keeps the room-rectangle reference, and it needs an anchored edge at all:centered/anchor centerisE_FURN_FLUSH. Write it beforeinset, whose reference it changes.anchor <edge>also aims a piece. An anchor names the wall(s) the piece is pushed against, so for a kind whose facing means something the quarter-turn is derived — norotateto work out by hand. It is derived only when the answer is unique (ADR 0005): the anchored edge must have a wall behind it, and the footprint's aspect must allow that edge to be the back (a 400 × 700 WC is 400 along the wall and 700 deep, so it can only back onto a horizontal edge).anchor bottom-leftin a walled corner therefore still has one answer for that WC, while a square 600 × 600 counter in the same corner has two — so nothing is derived andW_FIXTURE_BACK_TO_ROOMasks you to pick. An explicitrotatealways wins.
Relations: facing, against <room>.<edge>, clear
Placement says where a piece is; a relation says what it is for (ADR 0029). Each is declared by you, derived in closed form, reported by describe() only when written, and checked by lint.
arch
# The TV backs onto the living room's north edge; the sofa turns to face it.
furniture id=tv tv_unit against living.top offset 2500
furniture id=sofa sofa at (1400,2600) size 2200x900 facing tv
# A chair turns to the table it is sat at; a wardrobe keeps 600 mm free in front.
furniture id=t dining_table at (3800,1200) size 900x900
furniture chair at (4050,2150) size 450x450 facing t
furniture wardrobe against bed.right clear front 600facing <id>takes the quarter-turn whose front ray, from the middle of the front edge, enters the target nearest. It refuses rather than guesses: no turn hits (E_FACING_MISS), two hit equally near (E_FACING_TIE, the piece overlaps its target), the piece already states a turn (E_FACING_CONFLICT), it has no front (E_FACING_SYMMETRIC), or the turn would put a catalogued piece's back on its short side (E_FACING_TRANSPOSED, swap thesize).against <room>.<edge>backs the piece onto that edge: on the face of the one wall standing on the line, or on the line itself. It is the way to reach a wallwalls from roomsderived.clear front|sides <mm>is a declaration, never a catalogue default: a wardrobe's front is approached from the side or behind sliding doors often enough that a fixed number warned on correct plans. Declared, it is measured against solid pieces, wall bodies and door swings (an obstacle that only touches the zone at a point or along a line leaves it clear). A catalogued clearance is a floor: a declaredclear frontshallower than it does not silenceW_FURN_CLEARANCE; both are measured.
The symbol catalogue
A hundred and nineteen families, two hundred and two names with the aliases, and every one of them draws. The tables below are grouped by the room the pieces belong to.
Four columns need a word of explanation:
- Plan and 3D preview shows each family twice, from one generated one-piece
.archfile: on the left the symbol as the compiler draws it (default theme, on a sheet atscale 1:50), on the right the 3D preview of the same file. The piece stands at its catalogued footprint, or at a typical size where the kind has none; the low wall around it is there because the 3D preview raises nothing without a wall. The pictures are generated byscripts/specimen.ts(npx tsx scripts/specimen.ts catalogue), never drawn by hand; the same tool draws every family at 1:50 and 1:100 under each theme, and compares two checkouts side by side. Same source, plan and 3D preview. The 3D preview is extruded from the same .arch file by the separate archlang-3d package, and checked against the plan: every 3D element comes from the plan's elements, and every solid is closed. 3D preview: walls, openings, floors, stairs, furniture, outdoor surfaces and fences in plain colours; the ground and the soft contact shadows are the viewer's, not part of the building and not in the file; no pitched roofs or balcony railings yet, and no sections, elevations or BIM. More on what it shows: the 3D preview. - Footprint is the catalogued
along × depthin millimetres — the size any placement uses when you omitsize. A dash means the kind has none, sosizeis required there. - Facing says what ArchLang will do about which way the piece points. Derived means the symbol has an unmistakable back — a cistern, a tap, a nosing, a headboard, a wardrobe's door line — so an anchor can derive the quarter-turn and
W_FIXTURE_BACK_TO_ROOMflags a piece against a wall that faces the wrong way. Symmetric means the symbol is drawn so that a quarter-turn changes nothing, so its facing carries no meaning and is neither derived nor checked. Free means the piece is drawn with a front but is arranged rather than installed — a sofa's back to the room is a room-divider layout, not a defect — so nothing is derived and nothing is warned about. - Wall marks the kinds that carry
requiresWall, which means services and nothing else: supply, waste, venting, or hanging off the wall by definition. Those are the kindsW_FIXTURE_FLOATINGapplies to. A bookcase is not one of them — a library's stacks are free-standing runs mid-floor, which is what stacks are.
Bath
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
wc · toilet | ![]() | a rounded cistern across the back with its flush button, a four-centre oval bowl in front, the seat opening and two hinge ticks | 400 × 700 | derived | ✓ |
basin · lavatory | ![]() | a rounded vanity top with an inset four-centre oval bowl and its floor line, a tap and spout at the back and the waste — two bowls on a long enough slab | 600 × 450 | derived | ✓ |
shower | ![]() | a rounded tray with its floor let into the rim, four falls running from the corners to the waste, and the waste — a ring with a disc in it | 900 × 900 | symmetric | ✓ |
bathtub · tub · bath | ![]() | a rounded rim and an inset well whose foot end is a near half-circle and whose head end is nearly square, two taps on the head deck and the waste beside them | 1700 × 700 | derived | ✓ |
bidet | ![]() | an oval bowl with its rim, a small tap deck standing on the bowl's rear edge with its tap and jet, and the waste — a wc with no cistern | 400 × 700 | derived | ✓ |
urinal | ![]() | a U bowl run to the wall face — square at the back, a semicircle at the front — with its rim, the flush plate across its back and the waste | 400 × 350 | derived | ✓ |
mirror | ![]() | the glass, with a run of 45° reflection ticks across it — one per four depths of length, three to twelve | 900 × 50 | derived | ✓ |
towel_rail · towel_radiator | ![]() | the rail seen from above as one tube between a stile at each end, the two wall brackets, and a towel hung over the middle | 500 × 120 | derived |
The tub is deliberately uneven — a deep deck at the tap end, a shallow rim at the foot, and a well that is nearly square at one end and round at the other — so the drawing says which end you get in at. lavatory is one of only two aliases that differ from their head (sink, which also counts as wet, is the other): it does not count as a wet fixture for W_ROOM_NO_FIXTURE, which has always been true of it, while basin does.
urinal is the only symbol in the catalogue drawn as a U against its wall, and that is the honest plan of it: a wall-hung urinal has no back — the wall is its back — so the top of the bowl is the wall face, with square back corners, and its bowl runs to the very back edge of its footprint, where every other bath fixture's bowl stands clear of it.
mirror and bidet are both requiresWall, for the two different reasons that flag covers. A bidet is plumbed. A mirror hangs off the wall by definition — the upper_cabinet case, not the plumbing one. Neither carries a zone that would let it stand in for a WC or a basin: bidet counts as a wet fixture, mirror deliberately does not, because a mirror over a console table does not make a room a bathroom.
Kitchen & utility
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
kitchen_sink · sink | ![]() | counter slab, a centred rounded bowl with a waste, a tap ring with its spout at the back — two bowls from aspect 2, and a drainer board with four grooves on each side once the run leaves room for them; symmetric at every size | 800 × 600 | derived | ✓ |
counter · worktop | ![]() | slab with an upstand line near the back, a front-edge line near the front and a division tick at every 600 mm base-cabinet module boundary between them (none on a run shorter than two modules) | 600 × 600 | derived | ✓ |
stove · hob · cooktop | ![]() | slab with the glass hob plate, four burners as concentric rings — the large pair along the back, the small pair in front — and a row of four control knobs along the front | 600 × 600 | derived | ✓ |
fridge · refrigerator | ![]() | carcass, the door's face line across the front, the handle bar — and, by aspect, a vertical door split when it is a side-by-side | 600 × 650 | derived | ✓ |
oven | ![]() | carcass, three control knobs on the back edge, and the door with its glass window and handle bar — plus four burners when the footprint is wide enough to be a range, its knobs moving to a rail under the hob | — | free | |
dishwasher | ![]() | carcass, the tub's inset panel with two rack rails, the control strip across the door, and the handle bar | 600 × 600 | derived | ✓ |
island | ![]() | worktop, the line the seating overhang starts at along the front, and — by aspect — a hob plate with four burners or a sink bowl with its tap at one end | — | free | |
upper_cabinet · wall_cabinet | ![]() | the outline, a door-face line across the front band and a door split at every 600 mm module boundary (none on a run shorter than two modules), drawn entirely dashed | 600 × 350 | derived | ✓ |
washer · washing_machine | ![]() | carcass, the control strip across the back with its dial and button, and the door ring with a white porthole | 600 × 600 | derived | ✓ |
dryer | ![]() | the same carcass, its dial on the centre line, an empty drum with a gasket ring inside it where the washer has its porthole, and the lint-filter slot across the front | 600 × 600 | derived | ✓ |
laundry_sink · laundry_tub | ![]() | slab with one deep bowl, the step down to its floor, its waste, and a tap ring with its spout | 600 × 500 | derived | ✓ |
water_heater · boiler | ![]() | the cylinder in plan, its jacket ring, and two pipe stubs running back to the wall | 600 × 600 | derived | ✓ |
range_hood | ![]() | the hood outline with a fan ring, four blade radials and a hub ring, drawn entirely dashed | 900 × 500 | derived | ✓ |
microwave | ![]() | carcass, the door frame and its glass window over the left three-quarters, and the keypad strip with three buttons on the right | 500 × 400 | derived | |
bar_counter | ![]() | the worktop over the back of the footprint, the overhang line, and 1.2 stool seats per counter-depth of run, one to eight | 1800 × 600 | derived | |
pantry · tall_cabinet · larder | ![]() | carcass, the door-front line, a door per 0.9 depths of width (one to four) with a centred pull, and the tall-unit cross — two diagonals over the carcass, the drafting mark for joinery that rises to the ceiling | 600 × 600 | derived | |
wall_ac · split_ac · air_conditioner · ac_indoor | ![]() | the indoor unit of a split air conditioner, hung above the cut plane and so drawn entirely dashed: the casing, the filter line behind, the louvre and the air outlet along its front | 900 × 250 | derived | ✓ |
condenser · ac_outdoor · outdoor_unit · heat_pump | ![]() | the outdoor unit: the casing, the coil face along its back, and the fan grille centred in it — a ring, four guard spokes and the hub | 850 × 350 | derived | |
chest_freezer | ![]() | the cabinet, its lid inset from it, the hinge line along the back, and the lid's handle on the front edge | 1100 × 650 | derived | |
wine_fridge · wine_cooler | ![]() | an under-counter cooler: the top, the glass door along the front with its handle bar, and three bottle shelves dashed under the top | 600 × 600 | derived |
washer and dryer are the same box at the same size and stand side by side in most utility rooms, so they are drawn to differ by shape: a glyph carries no text, so a letter is not available to tell them apart even if it were good drafting.
island is free-standing by definition — that is what makes it an island — so it needs no wall and has no single frontal clearance. It is no longer symmetric: the symbol gained a seating overhang along one side, which is a distinguishable front, so the catalog flag came off to keep the data true. Nothing observable changed with it — an island still derives no rotation and still never trips W_FIXTURE_BACK_TO_ROOM, because that needs requiresWall or directional and an island is neither. Seating round it is a stool, a separate kind with its own symbol; the stools drawn inside a bar_counter are a different piece with a different footprint.
Four symbols read their own footprint and draw a different appliance either side of a threshold, because the fixture word alone cannot tell them apart and inventing one answer would be wrong for half the plans that use it. A kitchen_sink at aspect 2 or over takes a second bowl, and whenever the bowls leave room — one bowl from about aspect 1.7, two from about 2.7 — a drainer board on each side (never a single trough — a bowl is at most 1.25 times as wide as it is deep); a fridge at aspect 1.4 or over splits its door down the width (a side-by-side) and below it draws one door; an oven at aspect 1.6 or over is a range and gains a hob; an island at aspect 1.8 or over takes a hob at one end rather than a sink. Give the piece an explicit size to choose.
range_hood is the second symbol here drawn entirely dashed, and it makes the convention the drawing's rather than one glyph's: a dashed outline means a thing above the cut plane — upper_cabinet, roof, void, the outdoor pergola and a garage door's projection all say the same. The two kitchen ones are told apart by what is inside: a cabinet's door line and splits run edge to edge, a hood's fan is a ring about the centre.
Bedroom
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
bed | ![]() | mattress, headboard band at the head, one or two pillows, and the duvet with its turned-down band and one folded corner at the foot | 1500 × 2000 | derived | |
double_bed | ![]() | the same drawing — two pillows from a mattress aspect of 0.6, so at their catalogued sizes both draw two | 1800 × 2000 | derived | |
nightstand · bedside_table | ![]() | carcass and the top's edge bevel, the lamp standing toward the back (a white shade with the bulb ring inside it), and the drawer front with its pull on the room side | 450 × 400 | derived | |
wardrobe · robe · closet | ![]() | carcass, the door-front line near the front face, a divider between door bays, and in every bay the hanging rail at mid-depth (dashed — hidden inside the closed cabinet) with short hanger strokes across it | 1800 × 600 | derived | |
bunk_bed | ![]() | the bed's frame and headboard band, the lower mattress with its pillow at the head, the upper bunk and its guard rail dashed over it, and the ladder at the foot | 1000 × 2000 | derived | |
crib · cot | ![]() | carcass, the mattress inside it with its blanket and turned-down band, and the rail bars down both long faces | 700 × 1300 | derived | |
dresser · chest_of_drawers | ![]() | carcass and, on the room side, a row of drawer fronts (one per 0.8 depths of width) each with its pull | 1200 × 500 | derived | |
vanity · dressing_table | ![]() | top, the mirror band dashed across the wall side, a drawer pedestal with its pull at each end, and the stool between them | 1200 × 500 | derived | |
hospital_bed | ![]() | the frame with a panel across the head and the foot, four split side rails, the mattress with the joints of its articulated deck, and the pillow — made, so no folded corner | 1000 × 2200 | derived |
None of these carries requiresWall — a bed needs no pipe — but all nine are directional, because the symbol has a back worth turning toward a wall. That is what lets anchor top derive rotate 0 for a bed and put its headboard where you meant it.
The wardrobe is drawn the way a joiner's plan draws one. Its door bays are a fraction rule read off the footprint — one per 0.875 depths of width, so a 1800 × 600 robe gets three 600 mm doors — and each bay holds its own dashed rail (above the cut plane and behind a closed door, the one thing a dash means) with a run of hanger strokes across it, three to five a bay. Nothing else in the piece is dashed, and the counts depend on the footprint alone, never on the pen.
Living & dining
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
sofa · couch | ![]() | rounded body, an arm at each end running the full depth, and a row of back and seat cushions — one per 0.62 depths of seat, up to four | — | free | |
armchair | ![]() | the sofa construction with one cushion and broader arms | — | free | |
coffee_table | ![]() | hard top with softly eased corners and a white inset panel (the glass or tray) a tenth of the short side in; no legs — they are under the top | — | symmetric | |
tv_unit | ![]() | carcass, the door splits and one pull per door on the room side, and the television standing on its back edge — a slim panel on a foot plate | 1500 × 450 | derived | |
table | ![]() | hard top and one bevel line just inside it — exactly the dining_table's top, without the chairs; no legs — they are under the top | — | symmetric | |
dining_table | ![]() | the table inside a chair-zone band, with the chairs tucked under it | — | symmetric | |
chair | ![]() | a rounded upholstered seat and a pill-ended backrest bar along the rear edge | — | free | |
stool · barstool | ![]() | a round white seat and the footrest ring standing proud of it at the full footprint — two concentric true circles about the footprint centre | — | symmetric | |
bench | ![]() | slab with its board joints running lengthwise along whichever axis is longer | — | free | |
fireplace | ![]() | the chimney breast against the wall, the hearth slab in front of it, and the splayed firebox cut into the breast's room face, with its grate | 1200 × 400 | derived | |
radiator | ![]() | a shallow slab with its fins ticked across the depth inside the casing, at a clamped pitch | 1000 × 100 | derived | |
sideboard · buffet | ![]() | carcass, the door splits along the run, and one pull per door on the room edge | 1600 × 450 | derived | |
loveseat · sofa_2 | ![]() | the sofa construction with its cushion count pinned at two seats, whatever the footprint | 1500 × 850 | free | |
chaise | ![]() | the sofa construction with one arm (the left) and the other end open: a row of back cushions and one long seat cushion you lie along | 1600 × 800 | free | |
tv | ![]() | a slim panel on the room face and the wall bracket behind it — not the tv_unit, which is a carcass | 1200 × 80 | derived | |
coat_rack | ![]() | a round base, the pole, and four hook arms on the diagonals, each ending in a knob | 400 × 400 | symmetric | |
shoe_cabinet | ![]() | slim carcass, the door splits, and a long finger-pull along the front of each door | 800 × 300 | derived | |
sofa_l · corner_sofa | ![]() | the sofa construction round an L: the back run along the rear edge, the return down the left, a square corner seat, an arm at each free end, and the fourth quadrant left as open floor | 2600 × 1600 | free | |
floor_lamp | ![]() | seen from above as the parasol is: the shade, its open top with the light in it, and the spider fitting — a finial on four struts to the rim | 450 × 450 | symmetric | |
side_table · end_table | ![]() | a hard top with eased corners, its bevel, and the lower shelf dashed under it (hidden by the top) | 500 × 500 | symmetric | |
console_table | ![]() | a long shallow top, its bevel, the back rail along the wall edge, and the stretcher shelf dashed under the top | 1200 × 350 | derived | |
ottoman · pouf · footstool | ![]() | an upholstered block, its padded top, and the tufting — a grid of buttons, two by two on a square and more along a long one | 600 × 600 | symmetric | |
bean_bag | ![]() | a soft, nearly round sack, the raised back as a crescent, and the hollow a body sits in | — | free | |
rug · carpet | ![]() | a woven body with a border band inside it and a fringe off each short end (all four on a square rug) — unfilled, and the only symbol drawn entirely in the detail pen | — | symmetric | |
piano · grand_piano | ![]() | a grand: the keyboard across the back, the straight bass side down the right, a round tail, the concave bent side and the treble shoulder (tangent arcs throughout) with the lid line inside; a bench in front of the keys when the footprint is at least 1.3 widths deep | — | free | |
display_cabinet · vitrine · curio_cabinet | ![]() | a tall carcass, the glass showing what is inside, the door-front line, the split between its pair of doors and a pull each side of it | 1000 × 400 | derived | |
folding_screen · room_divider · privacy_screen | ![]() | the panels zig-zagging across the footprint, an even number of them (two to eight) so both ends stand on the back line, with a hinge at every fold | — | free | |
daybed · day_bed | ![]() | a bed-sized seat closed on three sides — the back along the wall side and an arm at each end — with its mattress between them | 2000 × 900 | free | |
wall_art · artwork · painting · picture | ![]() | a picture on a wall, above the cut plane and so dashed and unfilled, so the piece under it shows through: the frame and the canvas inside it | 900 × 50 | derived | ✓ |
sofa, armchair, chair, bench, sofa_l, loveseat and chaise are deliberately free: seating is arranged, not installed, so ArchLang neither derives a rotation for them nor warns when one faces the room. tv_unit, tv, sideboard and shoe_cabinet are the exception — each is directional (each has a front) but still carries no services, so floating one as a room divider raises nothing.
A loveseat is a sofa with its cushion count pinned. Both draw from one construction, so the pair cannot drift apart; what separates them is the number of seats, which is the fact the two words actually carry. A sofa reads the length of its seat and draws three cushions on a 2000 × 900 footprint; a loveseat draws two on any footprint.
A tv and a tv_unit are different kinds, not synonyms. A media console is 450 mm deep and a wall-mounted panel is 80, so a plan that draws the first where the second belongs has taken 370 mm of walkway away. Both are directional, and the symbols differ: the console has a carcass, door splits and pulls on the room side, and a television standing on its back edge; the mounted panel is a slim slab on the room face and the bracket behind it, and nothing else.
fireplace and radiator are not requiresWall, and both are genuinely serviced. That flag means the piece cannot work without a wall behind it, and neither of these can be flagged without warning on a normal drawing: a radiator is as often fed from the floor as from the wall and lives under a window, and a free-standing stove in the middle of a room is a plan someone drew on purpose. Both are directional instead, which is the claim the drawing can back: a fireplace's firebox opens onto the room with its hearth in front of it, and a radiator's fins run across it, from the back toward the front.
sofa_l's return is always on the LEFT, and there is no right-handed twin — but place … mirror now draws one. A sofa_l_r category was rejected rather than forgotten: it would put the fix in the vocabulary, where every future handed symbol would need its own twin. So a reflecting instance frame hands the glyph its own chirality instead, in frame.ts — the one place the handed rules are flipped — and the symbol is drawn as its own mirror image. Turn it with rotate where a quarter-turn is what you want; reach for place … mirror when you want the mirror-image piece.
Handedness is DERIVED from the drawing, not declared per family. Sixteen of the 119 shipped families have no vertical mirror axis (bed, desk, bathtub, island, washer, microwave, mirror, chaise, reception_desk, piano, sofa_l, bicycle, motorcycle, mailbox, ev_charger, double_bed) at their catalogued footprints (1000 × 600 for the five that have none). Handedness is a property of the drawing rather than of the family, though: counter, fridge, upper_cabinet, bicycle and motorcycle are handed at some footprints and symmetric at others — the first three because their detail is tiled by aspect, the bikes because they are drawn along their own long axis — which a per-family flag simply cannot express. A symbol that has a mirror axis renders byte-identical whether its instance was reflected or not, at every footprint; see src/elements/glyph-chirality.ts and test/glyph-chirality.test.ts.
Its footprint is the whole bounding rectangle, empty quadrant included, which is what every furniture rule measures — so a coffee table tucked inside the L raises W_FURNITURE_OVERLAP even though nothing touches. That is a known cost of having one shape seam rather than five: teaching the overlap rule about the L and leaving the clearance rule, the wall-collision rule and the two walkability grids on the box would make the drawing and the lint disagree in a way nothing tests.
A piano carries no footprint on purpose, so furniture piano against wall <id> is E_FURN_SIZE. That form derives the rotation from the wall under the back-on-top rule, and a piano's back-on-top is its keyboard — so the one thing it could derive is the one orientation a piano is never in. Place it with at (x,y) and a rotate, which is how it goes on a drawing anyway.
Office & misc
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
desk | ![]() | top with its edge bevel and the modesty panel across its back, the drawer pedestal on the right drawn dashed (it is under the top), and the monitor standing at the back | — | free | |
office_chair | ![]() | a rounded white seat, a crescent back of two true arcs, an armrest each side, and the five-star base dashed under the seat | — | free | |
bookshelf · bookcase · shelf | ![]() | carcass, the back panel, a divider between bays and a block of three book spines in each bay, read from the footprint's own long axis; stood on end it is a double-sided stack — the back panel is the long centre line and books stand on both sides | 900 × 300 | derived | |
plant · planter | ![]() | a scalloped crown of eight lobes, alternately long and short as a tree's are, filled with the planting tint, over the pot ring, with eight ribs and the stem | — | symmetric | |
car | ![]() | body rounded at both ends, the bonnet and boot panels, the windscreen and rear window as white trapezoids with the roof between them, a pillar line each side, and a wing mirror each side — inside the footprint | — | free | |
sun_lounger · lounger | ![]() | frame and three white cushion panels — the raised back with its headrest at the head end, the seat, and the leg rest | — | free | |
meeting_table | ![]() | a long eased top inside a chair band, with the dining_table chairs tucked under it, backrests out — up to six a side and one at each end | 2400 × 1200 | symmetric | |
reception_desk | ![]() | an L counter — a run along the back with a return down the left, its corners filleted but the reflex corner left sharp — the transaction ledge on the visitor faces, a nosing on each staff face, and the chair inside the L | 2400 × 900 | derived | |
filing_cabinet | ![]() | narrow carcass and the top's edge bevel, three drawer lines across it, and the pull on the front edge | 450 × 600 | derived | |
locker | ![]() | a run of narrow doors at a clamped count, the door-front line near the front face, and a pull on each door | 1200 × 450 | derived | |
pool_table | ![]() | the rail, the cushion band inside it, the cloth, and six pockets — four at the corners, two on the long rails | 2500 × 1400 | symmetric | |
treadmill | ![]() | frame, the console at the wall end with its display, the two side platforms, and the belt between them as a stadium | 800 × 1800 | derived | |
whiteboard | ![]() | the board on the wall edge, the frame's end caps, and the pen tray along its foot — solid, not dashed: the cut plane passes through it, as through a tv | 1800 × 100 | derived | |
printer · copier | ![]() | the machine, the scanner lid with its hinge line at the back, the paper exit, and the control panel with its display at the front | 600 × 650 | derived | |
server_rack | ![]() | a run of cabinets (one per 0.6 depths of width, one to eight), each with its rear and front door lines, its two mounting rails dashed behind the doors, and a handle on the front | 600 × 1000 | derived | |
workstation · desk_pod | ![]() | two rows of desks back to back with the privacy screen between them, the desk splits, a monitor on each desk, and the dining_table chairs tucked under them — one to four a side | — | free | |
potted_tree · indoor_tree | ![]() | a tree in a tub for indoors: a crown of sixteen lobes in the planting tint, the pot seen through it, four branches on the diagonals and the trunk — about 2 m tall where a plant is 1.1 m | — | symmetric |
A sun_lounger is aimed at the sun, and ArchLang has no sun model — the site layer names an aspect, not a daylight measurement — so nothing here derives which way it points and nothing warns about it. Say so with rotate.
The six commercial kinds take the drawing out of a house. Two things about them are decided rather than obvious. meeting_table follows dining_table's rule that the footprint includes its chairs — the dimension a plan needs to check is the one you cannot pull a chair out of — so a 2400 mm table is authored as roughly 3000 mm of footprint; it is drawn with an eased top, which is what tells it from the square-topped dining table at a glance. And treadmill carries the largest clearanceMm in the catalogue, 900 mm, because the run-off space behind a user is the one thing a gym plan can be wrong about in a way that matters; dresser, vanity and filing_cabinet carry 600, for a drawer or a chair.
car earns its place for the same reason bench does: it is drawn on real plans (a carport, a driveway, a garage) and a model asked for one will write the word whether or not the catalogue knows it. Its long axis is the driving direction, drawn top-to-bottom like every other symbol's depth, so rotate 90 parks it across a garage.
Outdoor
Thirty-six families for what a site plan draws once the drawing leaves the building. They live in their own module (src/elements/glyphs-outdoor.ts), drawn in the indoor symbols' line language (outline in the symbol ink, detail in the fine pen, true curves), and follow one rule the indoor tables do not: planting is a canopy that masks the ground — the tree, the conifer, the shrub, the hedge and the palm are each one closed outline filled with the lawn tint, so the ground hatch under them is painted out and the crown reads as one mass.
| Kind (and aliases) | Plan and 3D preview | Symbol | Footprint | Facing | Wall |
|---|---|---|---|---|---|
tree · deciduous_tree | ![]() | a canopy scalloped into sixteen lobes and filled with the lawn tint (it masks the ground hatch under it), eight forked branches and the trunk | — | symmetric | |
conifer · pine | ![]() | a sixteen-point needled star canopy (notched to 0.6 of the crown) in the lawn tint, eight spokes and the tree's trunk | — | symmetric | |
shrub · bush | ![]() | a closed cloud of eight equal lobes in the lawn tint, with a smaller cloud of foliage inside | — | symmetric | |
hedge | ![]() | ONE continuous band in the lawn tint, both faces scalloped and both ends rounded, with the hidden stem line dashed down its middle, and no box | 2000 × 600 | free | |
bbq · grill · barbecue | ![]() | a gas grill: the firebox with its barred grate, a shelf each side, and three control knobs on the front | 1200 × 600 | derived | |
outdoor_table · patio_table | ![]() | the dining table's language — the top inside a chair band, chairs tucked under it — round with four chairs when near-square, rectangular with chairs down the sides otherwise, and the parasol hole | — | symmetric | |
outdoor_chair · patio_chair | ![]() | the dining chair's seat and backrest with an arm down each side and slat joints across the seat | — | free | |
umbrella · parasol | ![]() | an eight-panel canopy sagging between its ribs, the ribs, and the pole | — | symmetric | |
bicycle · bike | ![]() | from above: two narrow tyres in line, the frame between them, the saddle, the handlebar across the front tyre, and the cranks with their pedals | — | free | |
motorcycle | ![]() | from above: the two tyres (the rear wider), the body narrowing to tail and headstock over them, the seat, the tank, and the handlebar with its mirrors | — | free | |
hot_tub · spa | ![]() | the rounded shell, the water, the moulded bench round a sunken footwell, and a seat division mid-side | — | symmetric | |
swing · swing_set | ![]() | the top beam, an A-frame splaying to two feet at each end, and two seats hung on their chains | — | free | |
trampoline | ![]() | the padded frame, the mat, and twenty-four springs across the narrow band between them | — | symmetric | |
bin · wheelie_bin | ![]() | the body, its lid, the handle along the hinged back edge, and the grip at the front | 600 × 700 | derived | |
mailbox · letterbox | ![]() | the box with its flap, and the flag beside it | 400 × 300 | derived | |
ev_charger | ![]() | the pedestal against the back edge with its display, and the cable — a true arc — with its plug | 400 × 300 | derived | |
pergola | ![]() | the overhead frame and a rafter grid, dashed and unfilled, on four solid posts | — | symmetric | |
sandpit · sandbox | ![]() | the timber frame, a plain sand field, and a corner seat board in each corner | — | symmetric | |
fire_pit | ![]() | the stone surround with its joints, the fire bowl, four logs and the embers | — | symmetric | |
shed · garden_shed | ![]() | the walls with a pair of doors swung in from the front, the floor, and a dashed roof ridge | 2400 × 1800 | derived | |
clothesline · washing_line | ![]() | a T-post at each end of the run with four lines strung between the arms | — | free | |
palm · palm_tree | ![]() | a crown of eight long pointed fronds, one closed outline in the lawn tint, each with its midrib and two pairs of leaflets, round the trunk | — | symmetric | |
flower_bed · planting_bed | ![]() | the bed with its edging, and two rows of six-petal flowers in the lawn tint along its own long axis | 2000 × 800 | free | |
boulder · rock | ![]() | a faceted outline with a broad base, and the three ridges that run from its crown | — | free | |
picnic_table | ![]() | the top with its board joints, a bench along each long side, and the end frames crossing between them | 1800 × 1500 | free | |
slide · playground_slide | ![]() | the chute with its bed and its rounded run-out lip, the platform at its head, and the ladder up to it | 800 × 3000 | derived | |
bollard | ![]() | the post from above: its body, the cap's chamfer ring and its centre | 200 × 200 | symmetric | |
bike_rack · cycle_stand | ![]() | a row of Sheffield hoops across the run, one per short side of run (one to ten), each with a base plate at both feet | 2000 × 800 | free | |
raised_bed · vegetable_bed | ![]() | the timber frame with a post in each corner, the soil, and two rows of seedlings along its long axis | 2400 × 1200 | free | |
pool · swimming_pool · plunge_pool | ![]() | a pool as one object: the coping, the water inside it and the tile line under the water's edge | — | symmetric | |
garden_gate · yard_gate | ![]() | a pair of leaves closed along the back edge, the joint where they meet, a post at each end, and each leaf's swing into the footprint | — | free | |
gazebo · pavilion · garden_pavilion | ![]() | the roof dashed with its four hips to the apex, the deck under it as an outline (the furniture in it reads through), and four solid posts | — | symmetric | |
greenhouse · glasshouse | ![]() | the frame of its walls and the glass inside it, as unfilled outlines (the benches and pots in it read through), and — dashed, above the cut plane — the ridge along its own long axis and the glazing bars across it | — | free | |
climber · climbing_plant | ![]() | a climbing plant on its trellis: the foliage in the lawn tint, scalloped along its front, the trellis rail on the wall edge and the stems into the leaves | 1200 × 300 | derived | |
bamboo | ![]() | a clump along its own long axis in the lawn tint, with two rows of culms seen end on | 2000 × 600 | free | |
stepping_stones | ![]() | a path of flat stones along its own long axis, one per 1.2 widths of run (two to twenty-four), the gaps between them equal | — | free |
Nothing out here carries requiresWall, and that is a decision. The flag means services — supply, waste, venting, or hanging off a wall by definition — and W_FIXTURE_FLOATING's own remedy line says "supply/waste/venting runs in the wall". Two kinds tempt you to set it anyway and both are wrong: a hot_tub is genuinely plumbed and is still set down on a deck and fed from below, so a tub in the middle of a terrace is the normal arrangement; an ev_charger is genuinely wired and is as often on a free-standing bollard as on a wall. Outdoors the wall is the exception.
bbq is the only outdoor kind with a frontal clearance (900 mm — the standing room a cook needs at an open grill). The hot tub deliberately has none: it is symmetric, so it has no front to measure one from. The barbecue's back is the top edge, this module's convention — the knobs are on the bottom, where the cook stands, so the top is the edge that goes against a wall or fence.
The shrub and the hedge are each one closed loop of arcs — no straight run and no box (a box around a hedge makes it read as a tray), and no gap between the arcs, which is what lets them carry the lawn tint.
The dashed marks follow one convention every time — above the cut plane or hidden, the rule upper_cabinet follows indoors and the one roof and void ship: the pergola's frame and rafters (its posts are cut, so they are solid), the shed's roof ridge, the gazebo's roof and hips, the greenhouse's ridge and glazing bars, and the hedge's stem line under its foliage.
The seven directional kinds (bbq, bin, mailbox, ev_charger, shed, slide, climber) are the ones you would write against wall or anchor about, and they carry a footprint, as do the runs (hedge, flower_bed, raised_bed, bike_rack, bamboo), the picnic_table and the bollard — so furniture shed against wall fence needs no size. outdoor_chair is deliberately free, for the reason every other seat in the catalogue is: seating is arranged, not installed.
A garden_gate is a piece, not a door in a fence. A fence takes no door, and the bare word gate is kept for a gate in a fence line, which the language defers by name. Write the fence as two runs with a gap between them, and stand the gate in the gap with at and rotate; its depth is the leaves' swing. Like every piece, it is not part of the access graph.
A pool is an object with its coping, not a ground surface: an outdoor water region is still the water surface it was. In the 3D preview the water is a slab at grade inside the coping, never dug below it (the ground is drawn at floor level and would hide it), and the 3D ledger says so. The gazebo's roof is part of the piece's own drawing and its own 3D geometry, not a roof element. A climber is the seventh wall-mounted kind: its trellis is fixed to the wall by its back, so standing it end-on to a wall is flagged as the wrong way round, as a radiator would be.
How a symbol is drawn
Two tones, two pens. A symbol's OUTLINE is drawn with the thin pen in a derived symbol ink — furnitureStroke mixed three sevenths of the way toward the wall ink, so it reads at 4.5:1 or better on the room fill in every shipped theme — and its DETAIL (cushion joints, pillows, burners, drains) with the finest pen, 0.13 mm on a sheet, in furnitureStroke itself. Stairs, lifts and escalators follow the same two tones, but every line of them is the thin pen. On the plan, style furniture { stroke "#…" } sets the detail tone and the outline follows it in the same hue, and a named colour (stroke "teal") is used for both; the legend's swatches are drawn in the plan's theme and do not pick up a style furniture override. The labelled rectangle of an uncatalogued word is not a symbol and keeps furnitureStroke.
Back on top. Every symbol is drawn with the side that goes against a wall along the top edge of its footprint, then quarter-turned about the footprint centre. So rotate 0 faces the back north, 90 east, 180 south, 270 west. Orient by the wall the piece sits against, or let against wall / in <room> anchor <edge> do it for you.
A drawn symbol ignores its label. A label reaches the drawing only through the labelled-rectangle fallback — that is, only for a kind the catalogue does not know. Writing furniture bed … label "Bed" is harmless but inert: the word stays in the source and in archlang describe --json, and no text appears in the SVG. The fallback is the escape hatch, and it is deliberate: an uncatalogued word (furniture hammock at … label "Hammock") still draws a rectangle with its name in it, which is how you annotate something ArchLang has no symbol for. In short, a symbol does not draw its label: the label is data, carried in describe() as furniture[].label, for a schedule or any other reader to list. An unlabelled word that is close to a catalogued kind (furniture grand_pianno) raises W_UNKNOWN_FURNITURE, which names the kind it is near and offers it as a fix that archlang fix --unsafe applies (plain archlang fix leaves it, since the word may be a piece of your own and the kind names the auto id; the fix re-prints the whole statement in canonical form, so comments inside a multi-line statement are dropped); a label marks the piece as your own and keeps it quiet.
A rug is an UNDERLAY, and it is the only kind that is. An underlay lies flat on the floor: furniture stands on it and people walk over it. The drawing honours that in two ways, and four rules read the same fact — every one of them declining a check rather than adding one.
- It is drawn first, under every other piece of furniture, whatever order the statements are in: a
rugwritten after the sofa standing on it renders exactly as if it had been written before, so the sofa's body covers the rug's lines instead of the lines running across the seat. Two rugs keep their own order. - It is drawn with no fill at all — the only floor-level symbol that is (
upper_cabinetandrange_hood, above the cut, are the others) — so it hides nothing even where no piece stands on it, and every line of it is in the detail pen: it has no outline-weight edge, so it reads as a floor finish, subordinate to the furniture's outlines. - A piece standing on it is not an overlap.
W_FURNITURE_OVERLAPskips an underlay-and-not-an-underlay pair. Two rugs overlapping each other still warn — one rug half over another is a drawing mistake, and nothing about walking on them says otherwise. - It never blocks a fixture's use-space. A rug reaching under the basin is not what
W_FURN_CLEARANCEis about; you stand on it. - It never blocks a route. Both walkability models — the whole-plan circulation grid behind
archlang describe --json'scirculationblock and the per-room flood fill behindW_ROOM_NO_CLEAR_PATH— drop it before they inflate anything by a body radius, so a rug across the only way into a room does not seal that room off.
W_FURNITURE_WALL_COLLISION deliberately still applies: what you can walk on has no bearing on whether it is drawn inside the plaster. The door rules (W_SWING_OBSTRUCTED, W_DOORWAY_BLOCKED) do not yet know about underlays either, so a rug in a doorway is still reported today.
Several symbols read their own footprint and change what they draw (fridge, oven, island, kitchen_sink and outdoor_table too); two worth spelling out follow. No branch looks at the category word, because the shape is the honest datum:
basindraws two bowls, at the quarter points, once the slab is at least 2.2 times as wide as it is deep — the vanity convention. Below that it draws one, centred.bed/double_beddraw two pillows once the mattress aspect (w / h) reaches 0.6, and one below it. On a 2000-long bed that falls at exactly the conventional 1200 mm single/double split, sofurniture bed … size 1500x2000draws the double it plainly is and adouble_bedsqueezed to 900 draws the single it has become.
A dashed outline means ABOVE THE CUT PLANE, or HIDDEN inside a closed piece. A floor plan is a horizontal section, so anything that sits above the cut is drawn dashed — present, but not cut — and unfilled, so whatever it overhangs still reads through it. upper_cabinet is dashed in its entirety because a wall cabinet hangs above the counter; a bunk_bed's upper deck is dashed for the same reason, and drawing it solid would claim the room has two mattresses of floor area; a vanity's mirror band is dashed because the mirror stands on the table. A part of a piece is dashed on the same terms: a wardrobe's hanging rail (above the cut, behind its closed doors), a desk's drawer pedestal (under the top) and an office_chair's five-star base (under the seat) are drawn dashed over the surface that hides them. It is the same convention roof, void and the outdoor pergola and shed ridge follow, through one shared dashedPattern() helper. There is no syntax for saying "draw this piece above the cut plane" — a kind is dashed because of what it is.
dining_table's footprint includes its chairs. furniture dining_table … size WxH declares the whole eating zone: the table is the inner rectangle inside a chair-zone band, and the seats are drawn in that band. That is the dimension a plan needs to check — a table you cannot pull a chair out of is not a table that fits — so a 1200 mm table is authored as roughly 2400 mm of footprint. Each long side seats one chair per 2.2 band depths of table, up to four, and each end seats one; a chair is tucked under the top by 30% of its depth, so the seats meet the table rather than float beside it. A square table seats one a side — the four-seater — and stays the same drawing under a quarter-turn.
The ASCII plan shows none of this. archlang compile -f txt (and archlang preview --ascii) reduces each piece to a single uppercase letter at its centre — the first letter of its category — because a character grid has no room for a symbol. The CLI turns on the annotate metadata the text backend needs to recover a category, so this works out of the box; a library caller passing a Scene built without compile(src, { annotate: true }) gets no marker at all for a drawn piece.
Sizes: catalogued footprints and the fixture library
The Footprint column above is what every placement uses when you omit size, so the common case has no numbers in it at all:
arch
furniture stove against wall w_west offset 1200 in r_kitchen
furniture kitchen_sink against wall w_west offset 2000 in r_kitchen
furniture fridge against wall w_west offset 2800 in r_kitchen
furniture wc in r_bath anchor right flush
furniture basin at (5200,600)against reads it as along × depth. at (x,y) and in <room> take a plan w × h, so they read it at the piece's quarter-turn: back north at rotate 0, turned by a written rotate, or, under anchor <edge> for a kind whose facing means something and with no rotate or facing written, laid along the one walled edge the anchor names (the rule is under the placement modes). A kind with no footprint needs an explicit size under every placement (E_FURN_SIZE).
Two importable libraries package the standard pieces at typical residential sizes, for when you would rather call a component than write a footprint:
arch
import "lib/fixtures.arch": wc, basin, shower, bathtub, kitchen_sink, counter, fridge
import "lib/furniture.arch": bed, double_bed, sofa, desk, wardrobe
wc(6200, 4600)
basin(5200, 4450)
shower(6000, 5000)| Library | Components |
|---|---|
lib/fixtures.arch | wc 400 × 700 · basin 600 × 450 · shower 900 × 900 · bathtub 1700 × 700 · kitchen_sink 800 × 600 · counter 600 × 600 · fridge 600 × 650 |
lib/furniture.arch | bed 1500 × 2000 · double_bed 1800 × 2000 · nightstand 450 × 400 · wardrobe 1800 × 600 · sofa 2000 × 900 · sofa_l 2600 × 1600 · rug 2000 × 1400 · armchair 900 × 850 · coffee_table 1100 × 600 · tv_unit 1500 × 450 · dining_table 2400 × 2000 · desk 1400 × 700 · bookshelf 900 × 300 · piano 1500 × 1500 · sun_lounger 700 × 1900 · stove 600 × 600 · washer 600 × 600 |
Imports need a filesystem, so they work from the CLI and the library but not in the browser playground — the flagship examples/studio.arch uses inline furniture for exactly this reason. examples/furnished-flat.arch is the worked example: a two-bedroom flat furnished with twenty-nine of the thirty-six kinds across all five domains, archlang validate --strict clean.
Furnishing empty rooms — archlang finish
archlang finish plan.arch furnishes the rooms that hold no furniture, then completes the sheet (--only furnish runs the first step alone). It is an explicit source transform (ADR 0025): compile never adds a piece. The room's use comes from uses, else from its label. A room with several uses gets the union, the wall fixtures first. The table describes the rooms of a dwelling.
| Room use | Pieces, in the order they are placed |
|---|---|
bedroom | bed 1500 × 2000, then 900 × 2000 · wardrobe 1800 × 600, then 1200 × 600 (optional) |
living | sofa 2000 × 900, then 1600 × 900 · coffee_table 1000 × 600 (optional) |
dining | dining_table 1800 × 1500, then 1400 × 1300 |
office | desk 1400 × 700, then 1200 × 600 · office_chair 500 × 500 (optional) |
kitchen | kitchen_sink · stove · counter or worktop 600 × 600, then 400 × 600 · fridge (optional) |
bath | wc · basin · bathtub or shower (optional) |
wc | wc · basin |
Sizes are along the wall × into the room, in mm; a piece with no size uses its catalogued footprint. A room of any other use (hall, circulation, entry, storage, garage, utility) or of no known use gets no piece: utility does not say laundry, and a plant room carries the tag too. It is still named in unresolved, so that list holds every room left empty: with the use that has no row, or, when neither uses nor the label or id names one, with the uses that would furnish it. Such a note carries scope: "outside-table" and asks nothing of the author unless the room should hold furniture. A room larger than 100 m² is not a dwelling room; it is named in unresolved and left as it is.
A use's wall fixtures form one run: the stove next to the sink, the worktop next to the stove and the fridge next to the worktop, on one wall. A worktop with no room left in the run stands against another wall (the other leg of an L, or across a galley), a 400 mm module when 600 does not fit. A use whose required pieces cannot be placed together is left out whole and named in unresolved.
Once a room's pieces are proposed, finish tries them once more as an upgrade, kept only when it holds every piece the first layout holds and raises no code the first layout does not. A kitchen's run becomes sink, worktop, stove, a second worktop, then the fridge, so a cook has a landing either side of the hob (the NKBA Kitchen Planning Guidelines, guideline 17, ask 12 in, 305 mm, on one side and 15 in, 381 mm, on the other; either module is a full landing). Where the room cannot hold that run with every piece of the first layout, the fridge included, the first layout is written as it was, with the hob landed on one side.
A WC stands with its centreline at least as far from each side face as W_WC_SIDE_CLEARANCE asks under accessibility-advisory (450 mm; analysis), the strictest ruleset the never-worse check holds. A bathroom or WC that the pieces, placed one at a time, would leave empty is tried as whole sets: each position of the pan, with the basin and the bath or shower completed around it, the basin also tried against the end of a door's approach or of the floor kept in front of the pan. The first set the check accepts is written; a room that no set fits stays empty, with the reason. The same upgrade keeps the access zone in front of a pan clear, 1100 mm deep from its front and 350 mm either side of its centreline (Approved Document M vol 1, Diagram 2.5), up to the nearest wall in it; a basin or a shower may stand in it. It moves a bathtub out of the zone where the room holds every piece elsewhere, and otherwise leaves the first layout as it was.
- Fill only. A room gains pieces only when nothing stands on its floor and nothing is declared
init. A piece stands on a room's floor when its footprint reaches it; a piece declaredinanother room must reach more than 100 mm onto it, the overhangW_FIXTURE_WRONG_ROOMallows at a wall. Nothing authored is moved, resized or deleted.- A room that holds some pieces but lacks one its use requires (a living room with a lamp and no sofa) is named in
unresolvedwith the missing pieces, and is not filled. A piece that does the job counts: adouble_bedfor abed, and aurinalfor awcin any wet room, a dwelling bathroom included. - A room whose only pieces are declared
init but stand outside it is named inunresolvedas holding no piece on its floor, withW_FIXTURE_WRONG_ROOM, and is not filled: fix the piece's position or itsinfirst.
- A room that holds some pieces but lacks one its use requires (a living room with a lamp and no sofa) is named in
- Relative placement. A services fixture is written
against wall <id> offset …; a free-standing piecein <room> anchor … flush size WxH rotate …. Neverat (x,y). - Never worse. A room's pieces are kept only when the plan still compiles and raises no diagnostic it did not have. Otherwise the next position is tried. When a required piece has no position, the room is left empty and named in
unresolvedwith the code that blocked it. An optional piece that does not fit is left out. - Scope. Rectangular rooms, and polygons whose every edge is horizontal or vertical: in those a piece stands only where an anchor or a named wall can say, on the outermost runs and the corners that are vertices of the ring, never against a notch edge. A circle or a slanted polygon is reported in
unresolvedand left as it is. A room of a placed component is reported too: furnish the component, or write the piece yourself where the instance is placed,furniture rug in u1.bed anchor center size 800x600 rotate 0. - Voids, lifts and escalators. A piece keeps off the storey's own
voids, lift shafts and escalators, on a single-storey plan as on each storey of a plan withlevelblocks, andW_FURNITURE_ON_VOIDreports a piece that stands on one. Avoidon another storey takes no floor here. - Storeys. A plan with
levelblocks is furnished storey by storey, by the rules of a single-storey plan. Each storey's statements go inside its own block, soin <room>andagainst wall <id>mean that storey's room and wall when the same id stands on another level. A piece keeps off a shaft's flights and landings, and a flight that passes through the floor from the storey above or below. "Never worse" is judged storey by storey: no storey may gain a diagnostic, whatever another storey lost.changesandunresolvedentries carry thelevel. - Time. Each check of the "never worse" gate compiles and lints the whole building, so
finishtakes longer as storeys are added, and it grows faster than the storey count. As one measurement, not a promise:--only furnishon the same floor of seven furnished rooms and a hall took about 2 s for one storey, 17 s for four and between 34 s and 58 s for eight, on a busy machine.
Furniture-aware lint rules
Placing fixtures meaningfully lets archlang lint reason about habitability. The furniture and fixture rules (each documented in the error catalog):
| Code | Flags |
|---|---|
W_FIXTURE_FLOATING | a services fixture — plumbed, vented, or hung off the wall (WC, basin, shower, bath, sink, counter, stove, fridge, dishwasher, washer, dryer, upper cabinet) — placed away from any wall |
W_FIXTURE_BACK_TO_ROOM | a piece that is against a wall but faces the wrong way — its back (cistern, tap, nosing, headboard, wardrobe door line, bookshelf's open face) turned to the room. Carries a rotate fix when one edge is unambiguously the back. Arranged seating never trips it, nor does a piece standing side-on or end-on: one that touches the wall only with a side or an end its footprint rules out as a back, its front off the wall too (a bed lengthwise along it, a wardrobe end-on), unless it is a services or wall-mounted piece (radiator, fireplace, TV, EV charger). Write that layout at or in <room> anchor <edge> flush with a rotate, since against always backs a piece onto the wall |
W_FIXTURE_WRONG_ROOM | a piece declared in <room> whose footprint does not sit on that room's floor (100 mm of overhang is allowed — a room edge is a wall centreline) |
W_FURNITURE_OVERLAP | two pieces overlapping by more than 1 mm on both axes — except an underlay and a piece standing on it (a sofa on a rug), which is the arrangement |
W_FURN_CLEARANCE | a fixture's frontal use-space blocked by free-standing furniture (an underlay never counts as the blocker) |
W_ROOM_NO_FIXTURE | a bath / WC / kitchen room with none of the relevant fixtures |
W_SWING_OBSTRUCTED | a door leaf or swing arc sweeping onto a fixture |
W_FURN_CLEAR_FRONT / W_FURN_CLEAR_SIDES | a declared clear front / clear sides depth with a solid piece, a wall body or a door swing inside it |
W_FURNITURE_ON_VOID | a piece, a rug as much as a wardrobe, standing on a void of its own storey, a lift shaft or an escalator: there is no floor there |
W_SEAT_FACING_AWAY | a chair, office chair or outdoor chair within 600 mm of a table or desk whose front faces away from every one of them (seatTableReachMm) |
W_FOOTPRINT_TRANSPOSED | a piece of a family that comes in one shape (bed, bunk bed, crib, bath, WC, bidet, sofa_l, loveseat, bar counter, TV, mirror, treadmill) whose symbol frame has its long side where the catalogue footprint has its short one, by at least 5:4, so it draws turned a quarter: sofa_l … size 900x2400 with no rotate. A family sold in both shapes (wardrobe, filing cabinet, locker, sink) is not judged |
These are advisory — facts and warnings, never an auto-arranger (see ADR 0005). See Analysis: describe & lint for the full rule set and profiles.






















































































































