Model comparison¶
Module: bimora.interoperability.compare · CLI: bimora compare · API: compare_models().
bimora compare revision-a.ifc revision-b.ifc
bimora compare revision-a.ifc revision-b.ifc --json --output diff.json
bimora compare revision-a.ifc revision-b.ifc --fail-on-changes # exit 1 when anything changed
Elements and spaces are matched by IFC GlobalId. The result lists:
| Category | Meaning |
|---|---|
| added / removed | GlobalIds present in only one revision |
identity:* |
IFC class, Name, LongName, ObjectType, predefined type, type name or Tag changed |
spatial:storey |
storey or container changed |
classification |
classification references changed (system, code, name) |
material |
assigned materials changed |
property:Pset.Prop |
property value added, removed or changed |
quantity:Qto.Name |
declared quantity changed (compared in SI units, relative tolerance 1e-6) |
Limitations¶
- Metadata only. Geometry is not compared; this is not clash detection or geometric change detection.
- Stable identifiers required. If an authoring tool regenerates GlobalIds between exports, changed elements appear as removed + added. A warning is shown when fewer than half of the elements can be matched.
- Duplicate GlobalIds within one revision: only the first occurrence is compared (with a warning).
- Comparing different schemas (for example IFC2X3 → IFC4) works but class names can differ between schemas.