plancheck
Building code as machine-readable rules, with a fixture for every rule.
- Status
- Beta
- License
- MIT
- Language
- Python
- Tests
- 223
Install
pip install git+https://github.com/aec-platform/plancheck.gitNot on PyPI yet — this installs from source.
Run
plancheck check my-building.ifc --jurisdiction TCVN
A small DSL for testable code requirements — egress widths and dead ends, stair riser-tread ratios and landings, fire resistance and compartment area, separation distance, setbacks, parking, daylight — with fixtures proving each rule fires when it should and stays quiet when it should not. TCVN, IBC and EN jurisdictions ship in the box; the Vietnamese set encodes QCVN 06:2022/BXD fire safety, QCVN 04:2021/BXD apartment buildings and QCVN 01:2021/BXD planning. Rules export two ways to buildingSMART IDS, with an honest report of what could not be expressed rather than a silent downgrade.
What makes it different
- One rule = one TOML file + its fixtures; a contributor adds a code clause without touching the engine
- 43 rules over three jurisdictions — 26 of them Vietnamese, covering QCVN 06 fire safety end to end
- Where a clause has two thresholds and the input is missing, the rule takes the strict branch — a blank field never buys the relaxation
- Two-way buildingSMART IDS with an explicit non-exportable report