Skip to content

Getting started

Requirements

  • Python 3.11 or newer (tested locally with 3.12; CI covers 3.11–3.13 on Linux, Windows and macOS once the workflows run on GitHub).
  • An IFC file in STEP encoding (.ifc), schema IFC2X3 or IFC4.

Install

git clone https://github.com/adelkazemi1/bimora-open-source
cd bimora-open-source
python -m venv .venv
# Windows: .venv\Scripts\activate    macOS / Linux: source .venv/bin/activate
python -m pip install .
bimora --version

First steps

  1. Look inside a model
bimora inspect examples/pavilion-ifc4.ifc

Shows the schema, project, units, hierarchy and element counts.

  1. Check its information quality
bimora validate examples/pavilion-ifc4-incomplete.ifc

Lists findings with rule, severity, element and a suggested correction. The exit code is 1 when errors exist (change with --fail-on).

  1. Get rooms and areas
bimora spaces examples/pavilion-ifc4.ifc
  1. Export for a spreadsheet
bimora export examples/pavilion-ifc4.ifc --format csv --output out/
  1. Compare two revisions
bimora compare examples/pavilion-ifc4.ifc examples/pavilion-ifc4-revision-b.ifc

From Python

from bimora import inspect_model, validate_model

summary = inspect_model("examples/pavilion-ifc4.ifc")
results = validate_model("examples/pavilion-ifc4.ifc")
print(summary["counts"], results.counts)

Next: CLI reference · Python API · Validation.