Plotlay Open the app →

Guide 8 · design codes

Rule pack format

A guide for councils, estate developers, body corporates, design studios, consultants and anyone who wants a set of planning or design rules checked against a Plotlay project. Version 1.3, 2 November 2026 (1.3 adds Excel workbooks and tables with flexible headers, templates to download, export of any pack, a rule's target for a figure with a plus or minus, a rule's source, the pack's author, and fit-out measures such as a vanity's top height; 1.2 added country, applies_to, units, a rule's confidence, stair pitch and clear opening area).

Reference only. Rules are simplified from published sources and may be out of date or incomplete. Verify with the current code and your council, certifier or relevant authority before relying on them.

What a pack is

A rule pack is a list of checks Plotlay runs against a drawn project: a setback, a height, a site coverage, a fence height, a door width. Each check reports one of:

Result Meaning
PASS Meets the rule.
WARN Passes but is close to the limit (inside its warn band), or is just outside it but within the rule's tolerance.
FAIL Does not meet the rule.
UNKNOWN Not measured yet, or depends on a fact nobody has entered. UNKNOWN is never a pass.

Plotlay ships packs for the Australian states, New Zealand, England, Scotland, Wales, Ireland, the US, Canada, Singapore and some European countries, listed with their sources in design-code-packs.md. Anyone can write their own in an Excel workbook, a CSV or TSV table, JSON or YAML and import it into a project (Design codes, Import a pack), or have an AI agent connected to Plotlay build one from a document.

The quickest start is a template: Design codes, Import a pack, Download a template (Excel, CSV, JSON or YAML), or the connector's get_rule_pack_template. Any pack, a built-in code included, can also be exported in each format (Design codes, Export…; the connector's export_rule_pack), changed, and imported again. See Tables: Excel, CSV and TSV, below.

A project keeps a copy of each pack it uses, at its version. A later check gives the same answer until someone chooses a newer version.

A small example

{
  "id": "seaview-estate",
  "name": "Seaview Estate design guidelines",
  "kind": "template",
  "jurisdiction": "Seaview Estate",
  "version": "2026.1",
  "published": "2026-03-01",
  "source": "Seaview Estate Design Guidelines, March 2026",
  "source_url": "https://example.org/seaview-guidelines.pdf",
  "disclaimer": "The developer's design approval is still needed.",
  "rules": [
    { "id": "front-setback", "title": "House front setback", "ref": "4.1",
      "each": "dwellings", "metric": "front_setback_mm", "op": ">=", "limit": 6000, "unit": "mm",
      "tolerance": 200, "note": "Porches may sit 1.5 m forward of the building line." },
    { "id": "fence", "title": "Front fence height", "ref": "6.2",
      "each": "fences", "where": { "front": true }, "metric": "height_mm", "op": "<=", "limit": 1200, "unit": "mm" },
    { "id": "colours", "title": "Roof and wall colours", "ref": "5.3",
      "each": "site", "op": "check", "note": "From the approved palette only." }
  ]
}

Pack fields

Field Required What it is
id yes for sharing Short id: lower case letters, digits and dashes. The same id at a new version is an update.
name yes What the pack is.
kind no code (a design code or council document), template (your own checks, not an official code), practice (common practice). Reports say when a pack is a template.
jurisdiction yes for sharing NSW, VIC, NZ, GB-ENG, IE, US, CA, FR, EU, or your own name for it. The picker groups packs by region from it: Australia, New Zealand, International, Europe, UK and Ireland, Americas, Asia (REGIONS in src/core/rules.js).
country no The country (ISO 3166 code: GB, US), or EU or INTL for European and international standards. Left out, it comes from the jurisdiction.
applies_to no Who the pack is for, in plain words: "New houses and flats", "Buildings other than dwellings".
units no imperial or metric. An imperial pack's figures are shown in feet and inches as well, and are tested against the inch figure (below). Left out, a US pack is imperial and every other pack metric. A project drawn in feet and inches sees feet and inches on every pack.
version yes for sharing Any text: 2026.1, 3. Projects pin to it.
published no The date of the source document.
instrument, instrument_version no The document and the version or amendment the rules come from.
effective no The date that version took effect (2026-10-09).
checked no The date the rules were last checked against the source.
description no Two or three sentences: what the pack covers and what it does not.
source, source_url yes for sharing The document and a link to it.
disclaimer no Shown with the pack and on reports. Plotlay adds the reference-only line.
author no Who wrote or keeps the pack: a studio, a council team, a person.
based_on no Set by Plotlay on a copy: { "id", "version", "name" } of the pack it was copied from.
short no A short name put before each clause reference on reports (R-Codes 5.1.2).
params no Facts a person enters per project, below.
indicative no true for guidance only (building code notes, accessibility basics).
rules yes The checks.

Rule fields

Field What it is
id Short id, unique in the pack.
title Plain words: "House front setback".
ref The clause, standard or table: cl 3.10(3), Table B, B2-1.
source The document the rule comes from, when it is not the pack's own (a studio's standards that draw on several documents). Reports show it.
source_url A link to the clause, if the source has one. Otherwise the pack's link is used.
each What the rule applies to: site, dwellings, buildings, structures, fences, rooms, openings, stairs, fitout, driveways, crossovers, trees, roofs, earthworks.
where Which of those: { "role": "outbuilding" }, { "room_type": "bedroom" }, { "kind": "door" }, { "item": "vanity" }, { "front": true }, { "status": "proposed" }, { "layer": "Stage 2" }. A list means any of.
metric What is measured (the table below).
op <= < >= > == != between (limit [min, max]) in (limit [a, b]) exists check.
limit The figure, in unit. Leave it out (or null) in a template still to be filled in: the rule reports UNKNOWN.
target With op: "between": the figure aimed at, inside the limit. "limit": [830, 870], "target": 850 is 850 ± 20 mm, and reports show it that way. An uneven range is allowed: [1200, 1250] with target 1200 shows as 1,200 mm (−0, +50 mm).
limit_from A limit that depends on a project fact or a site figure (below).
applies_if The rule applies only in some cases (below).
unit mm, m², %, °, or none. Lengths are millimetres.
warn_within A pass this close to the limit is WARN.
warn_within_pct The same, as a percentage of the limit.
tolerance A value this far outside the limit is WARN, not FAIL: 6000 with tolerance 200 accepts 5800. (A target's plus or minus is not a tolerance: 850 ± 20 passes from 830 to 870 and fails outside. Use target.)
min_width_mm On an area (pos_m2, pos_largest_m2, soft_pct, landscaped_pct, deep_soil_pct, permeable_pct): count only the parts at least this wide. For "25 m² with a minimum dimension of 3 m": pos_m2 >= 25, min_width_mm: 3000.
sun For pos_sun_pct and neighbour_shadow_m2: { "date": "winter", "from": 9, "to": 15, "hours": 3 } (winter: 21 June south of the equator, 21 December north; or equinox). Solar time.
envelope For envelope_excess_mm: { "base_mm": 3000, "angle_deg": 45 }, a plane rising at that angle from a line that high above each side and rear boundary. Where the angle depends on the way a boundary faces, give angles: [[0, 55], [90, 39], [180, 26]] (the bearing of the boundary's outward side from true north, and the angle; a boundary between two steps takes the lower).
verified The date the figure was checked against its source, or false.
confidence high: the figure was read in the official text; medium: in the authority's own guide to it. A figure less sure than that is left out of the pack.
note What the rule says in plain words, its exceptions, and anything the check simplifies.

op: "check" is for what a drawing can't measure (overlooking, overshadowing, materials, waterproofing). It is listed once, as UNKNOWN, for someone to check by hand. Put the figures in the note.

What can be measured

each Metrics
site site_area_m2, lot_width_mm (the street frontage), coverage_pct (roofed area as % of the site: the house to the outside of its walls, eaves not included, plus roofed carports, verandahs and sheds), roofed_m2, soft_m2, soft_pct, landscaped_pct (turf and planted beds, parts at least 0.7 m wide unless the rule sets min_width_mm), deep_soil_pct (turf and planted beds), permeable_pct (turf, beds, gravel and areas marked permeable), pos_m2, pos_largest_m2, pos_min_dim_mm (the narrowest part of the largest private open space), pos_sun_pct (private open space with the rule's hours of sun), neighbour_shadow_m2 (shadow cast beyond the side and rear boundaries), garage_opening_mm and garage_frontage_pct (garage doors and carport openings facing the street), car_spaces (a project fact)
dwellings front_setback_mm, min_side_setback_mm, rear_setback_mm (to the outside face of the walls), floor_area_m2 (footprint), envelope_excess_mm (height above the rule's envelope at the nearest wall), status (proposed when any part is), and the project facts building_height_mm, wall_height_mm, storeys, gfa_m2
buildings each separate building (the house, a granny flat, a studio): floor_area_m2, internal_area_m2, rooms, bedrooms, main (the largest), front_setback_mm, min_side_setback_mm, rear_setback_mm, forward_of_building_line, distance_to_main_mm. where: { "main": false } picks a second dwelling.
structures carports, verandahs, sheds and pergolas (role: carport, verandah, outbuilding): floor_area_m2, post_height_mm, roof_height_mm, roof_pitch_deg, front_setback_mm, min_side_setback_mm, width_mm, length_mm, boundary_length_mm, forward_of_building_line, attached
fences height_mm, length_mm, front, pool (a pool barrier)
rooms floor_area_m2, min_dim_mm (the narrowest part), ceiling_height_mm (when measured or set), room_type (bedroom, bathroom, wc, laundry, kitchen, living, study, hall, garage, storage, other), wet, upper, floor_level_mm, turning_circle_mm (the largest circle clear of what is drawn in the room), work_triangle_mm, work_triangle_leg_min_mm, work_triangle_leg_max_mm (sink, cooktop and fridge in a kitchen)
openings doors and windows: kind (door or window), width_mm (as drawn), clear_width_mm (set in the Inspector), height_mm, clear_area_m2 (clear width times height, once both are set: an escape window's opening), sill_mm, room, room_type, external, egress, upper, floor_level_mm, faces (street, side or rear), boundary_dist_mm (straight out from the wall to the boundary it faces)
stairs stairs and outside steps, once their risers and height are set: rise_mm, going_mm, slope_mm (2 risers plus a going), pitch_deg (the angle of the flight from the rise and going), width_mm, risers, total_rise_mm, balustrade, balustrade_height_mm, external
fitout fit-out and fittings drawn in a room (placed from Fit-out or the Library): top_mm (its top above the floor: the height it sits at plus its own height, as set in the Inspector), height_mm, base_mm (its underside above the floor: a wall-hung vanity, a mirror), width_mm (the longer side in plan), depth_mm (the shorter side), item (a plain name: vanity, shower for a shower recess or enclosure, bath, toilet, bench, wardrobe, mirror; anything else, its fit-out kind), kind (the fit-out kind or Library entry), room, room_type
driveways width_mm, width_at_boundary_mm, gradient_pct, centreline_angle_deg
trees, roofs, earthworks see list_rule_packs on the connector

Shadows come from the site's own house, structures and fences on level ground: the neighbours' buildings are not modelled. Sun hours need the site's location and the building height.

Only a height someone measured or entered counts: drawing defaults never pass a rule.

Imperial codes

Lengths are millimetres and areas square metres in every pack, so one engine checks them all. A US code states its figures in inches and feet and prints a rounded metric figure beside them (32 in prints as 815 mm, though 32 in is 812.8 mm). Write the metric figure the code prints in limit, and the inch figure in the note. An imperial pack is tested against the inch figure the printed one stands for (the nearest quarter inch, or tenth of a square foot), so a door exactly 32 in clear passes a 32 in (815 mm) rule. Reports show both: ≥ 815 mm (32 in).

Facts the drawing doesn't hold: params and limit_from

Declare what a person must enter for the project:

"params": [
  { "id": "wa_r_code", "label": "R-Code density", "type": "select", "options": ["R20", "R30", "R40"] },
  { "id": "zoning_front_setback_mm", "label": "Front setback in your zoning code", "type": "number", "unit": "mm", "help": "From your local zoning code" }
]

Then a rule's limit can come from it:

applies_if limits a rule to some cases: { "param": "nsw_zone", "in": ["R1", "R2"] }, { "metric": "site.site_area_m2", "between": [450, 100000] }, { "param": "storeys", "op": ">=", "value": 2 }. A list means all of them: [{ "param": "qld_code_version", "in": ["QHC 2026"] }, { "metric": "site.site_area_m2", "op": "<", "value": 2000 }].

Until a fact is entered, its rules report UNKNOWN and say which fact they need. The common facts building_height_mm, wall_height_mm, storeys, gfa_m2 and car_spaces are shared by every pack.

YAML

The same fields:

id: seaview-estate
name: Seaview Estate design guidelines
version: "2026.1"
source_url: https://example.org/seaview-guidelines.pdf
rules:
  - id: front-setback
    title: House front setback
    ref: "4.1"
    each: dwellings
    metric: front_setback_mm
    op: ">="
    limit: 6000
    unit: mm
    tolerance: 200

Quote operators (">=") and versions ("2026.1").

Tables: Excel, CSV and TSV

Most studios keep their standards in a spreadsheet, so a pack can be one: one rule per row under a header row.

The Excel template (plotlay-rule-pack-template.xlsx) has four sheets:

Plotlay reads the sheet named Rules (or, in another workbook, the first sheet with a header row it recognises) and the About the pack sheet. An exported pack is the same workbook, filled in.

The CSV template has the same columns and the same examples as rows. The pack's details go on # key: value lines above the header (# name: Seaview Studio standards, # version: 2); any other line starting with # is a note. A value that needs more than one line, or is a list or an object (params), is written as JSON on its line. The CSV is UTF-8 with a byte order mark, so Excel shows m² and ± correctly.

# name: Seaview Studio standards
# version: 1
# kind: template
Rule id,Rule,Applies to,Which ones,What’s measured,Comparison,Limit,Minimum,Maximum,Target,Plus or minus,Unit,Tolerance,Clause,Note
hall-width,Hallway clear width,rooms,room_type=hall,min_dim_mm,>=,1000,,,,,mm,10,2.1,Example figure: use your own.
vanity-height,Vanity top height,fitout,item=vanity,top_mm,target,,,,850,20,mm,,4.3,Example figure: use your own.
shower-recess,"Shower recess, shorter side",fitout,item=shower,depth_mm,,,900,,,,mm,,4.5,Example figure: use your own.
waterproofing,Waterproofing to the wet areas,rooms,,,check,,,,,,,,4.9,Check by hand: the membrane and its upturns.

The columns

Column Rule field Also read as
Rule id id id, code, key. Left blank, one is made from the rule's name.
Rule title Title, Rule name, Name, Requirement, Standard (and Description or Item when no other column is the rule's name)
Applies to each Each, Element, Category, Object. Singular or plural (room, rooms), and fit-out, fixtures or items for fitout.
Which ones where Where, Filter, Only. field=value, several separated by ;, and a vertical bar between values for either (kind=door|window): room_type=bedroom; status=proposed. Or JSON.
What's measured metric Metric, Measure, Measurement, Check type, Dimension. A measure's id (min_dim_mm), each.metric (rooms.min_dim_mm), or its name as the Lists sheet gives it (Narrowest width). Left without Applies to, a measure only one kind of element has (such as turning_circle_mm) says what it applies to.
Comparison op Operator, Test, Compare. >= <= > < == != between in exists check, target, or words: at least, min, ≥ (all >=), at most, max, ≤ (all <=), range, one of, check by hand, manual. Blank: worked out from the figures given.
Limit limit Value, Figure, Threshold, Required. A number; 2..10 with between; values separated by a vertical bar with in (R20|R30); true or false. A cell can carry its comparison and unit: >= 1.2 m, 900 to 1200 mm, 850 ± 20 mm.
Minimum, Maximum op and limit Min, At least, Lower limit; Max, At most, Upper limit. A Minimum alone is >=, a Maximum alone <=, both a range (between).
Target, Plus or minus op: between, limit, target Nominal, Design value; ±, +/-, Tolerance band, Deviation. 20, or +20/-10 when the two sides differ. With a Target and no Plus or minus column, a Tolerance column is read as the plus or minus.
Unit unit Units, UoM. mm, cm, m, m² (m2, sqm), mm², cm², %, ° (deg), in, ft, ft² (sq ft), or none for a count. Lengths and areas in other units are converted to the pack's own (millimetres, square metres): 1.2 m becomes 1200 mm. A unit in brackets in a header (Minimum (m)) is the unit for that column's figures. Blank: the measure's own unit.
Tolerance tolerance Tol, Allowance, Leeway
Warn within, Warn within % warn_within, warn_within_pct Warn, Warning band
Clause ref Ref, Section, Reference, Clause no, Table
Source, Source link source, source_url Document; URL, Link
Note note Notes, Comments, Remarks, Guidance
Confidence confidence high or medium
Checked on verified Verified, Date checked. A date, or false.
Limit from, Applies if, Sun, Envelope (advanced) limit_from, applies_if, sun, envelope JSON, as in this guide. Limit from also takes a project fact's id alone: zoning_front_setback_mm.
Counting parts at least (mm), Shown limit, Needs review (advanced) min_width_mm, threshold, needs_review

Headers are matched without regard to case, spaces or punctuation. A column Plotlay doesn't know is left out, and the preview says so. A row with a name but no measure and no figure is read as a check by hand.

Figures from other places. A file whose columns are separated by semicolons or tabs, as Excel saves a CSV in much of Europe, is read as it is, with decimal commas (1,2 is 1.2; 1.000,5 is 1000.5). In a comma file, 1,200 and 12 500 are thousands. A table copied from Excel, Numbers or Word and pasted is tab separated, and Excel's "Unicode text" (UTF-16) reads too. Dates typed into Excel are read as dates (2026-11-02).

Problems are reported by row, in the file's own column names: Row 7: Unit: 'mm²' isn't a length; this check measures a length (Narrowest width). The app shows every rule and every problem before anything is added, and can import the rules without problems and leave the others out (the connector: preview: true, and skip_bad_rows: true). A figure under 20 with no unit on a length (1.2) is read as millimetres, with a warning that metres need m in Unit.

Not a table. Plotlay reads tables and pack files, not rules written as prose in a PDF or Word document. An AI agent connected to Plotlay can read such a document and build the pack (Design codes, Import a pack, Have an AI agent build it): every rule it enters is marked for review.

Exporting a pack

Every pack exports in Excel, CSV, JSON and YAML: from the Design codes panel (Export… beside a pack, or in its Rules), or the connector's export_rule_pack. Exported and imported again, a pack is the same, field for field, in every format (the tests check every built-in pack this way). What is left out is bookkeeping: who added each rule and when, and a project's history of versions.

A built-in code can't be changed, so it exports as your own copy: a template with its own id (nsw-housing-code-my-copy), named "(my copy)", with based_on naming the code and version it came from. Import it, change its figures, and every other project keeps the published code. A pack file that carries a built-in code's own id comes in the same way, as your copy.

Versions and updates

Rules an AI agent enters

An agent connected to Plotlay can build a pack from a document it has read (create_rule_pack, update_rule_pack, import_rules), start from a template (get_rule_pack_template), or export a pack to change (export_rule_pack). Each rule it enters is marked "needs review" until a person confirms it in the app (Design codes, Rules, Confirm). Until then, reports say: "Includes rules entered by an AI agent and not yet reviewed."

Good practice for authors

Checking the built-in packs

Plotlay's own packs are kept as reviewed JSON in data/codepacks/ and built with node scripts/codepacks.mjs. node scripts/validate-packs.mjs checks every pack (it runs with the tests): each figure cited and verified, dates set, units matching what is measured, params declared with the options a rule names, template packs holding no figures of their own, and fixtures that pass and fail every measured rule. --urls also fetches every source link.