bim-code

Check rooms against building-code requirements for multiple jurisdictions (NYC 2022, IBC 2021). Pass a JSON envelope from Revit exec or an IFC parser; get pass/fail per room with measured vs required values and fix guidance.

Verbs

VerbWhat it does
bim code doctor Check driver health: how many jurisdiction rulesets load.
bim code jurisdictions List available jurisdiction IDs (e.g. nyc-2022, ibc-2021).
bim code rules --jurisdiction <jurisdiction> List the rules for a jurisdiction, including the facts each rule requires. Call this before `check` to learn which room facts to supply.
bim code check [--jurisdiction <jurisdiction>] [--rules <rules>] < <stdin> Check rooms against building-code requirements. Pipe a JSON envelope ({"jurisdiction":"<id>","rooms":[...]}) to stdin -- data can come from bim revit exec, an IFC parser, or manual input. Covers natural light, natural ventilation, ceiling height, minimum room area, minimum room dimension, egress door width, and egress capacity (nyc-2022); natural light and ventilation (ibc-2021). Returns pass/fail per room with pre-computed delta and fix guidance; missing facts produce missing_data severity rather than a guess.

doctor

bim code doctor

Check driver health: how many jurisdiction rulesets load.

jurisdictions

bim code jurisdictions

List available jurisdiction IDs (e.g. nyc-2022, ibc-2021).

rules

bim code rules --jurisdiction <jurisdiction>

List the rules for a jurisdiction, including the facts each rule requires. Call this before `check` to learn which room facts to supply.

check

bim code check [--jurisdiction <jurisdiction>] [--rules <rules>] < <stdin>

Check rooms against building-code requirements. Pipe a JSON envelope ({"jurisdiction":"<id>","rooms":[...]}) to stdin -- data can come from bim revit exec, an IFC parser, or manual input. Covers natural light, natural ventilation, ceiling height, minimum room area, minimum room dimension, egress door width, and egress capacity (nyc-2022); natural light and ventilation (ibc-2021). Returns pass/fail per room with pre-computed delta and fix guidance; missing facts produce missing_data severity rather than a guess.