Skip to content

Architectural data validation

Module: bimora.validation · CLI: bimora validate · API: validate_model().

Validation checks the completeness and consistency of the information in a model against configurable rules. It is not building-code compliance checking, engineering approval or professional design verification. A model without findings is not thereby approved for any purpose.

Rules

Rule Default severity Checks
BIM001 error element / spatial entity without a GlobalId, or a GlobalId that is not a 22-character IFC GlobalId
BIM002 error the same GlobalId used by more than one entity
BIM003 warning no building in the model, or a building without a name
BIM004 warning building storey without a name
BIM005 warning space without Name and LongName, or without LongName
BIM006 warning property present with an empty value
BIM007 error not exactly one project; site / building / storey / space with no or an unexpected aggregation parent; element not contained in a storey or space, or contained in several
BIM008 error no units, missing length / area / volume unit, or metric and imperial mixed
BIM009 warning no classification reference on the classes listed in classification_required_for
BIM010 warning no material on the classes listed in material_required_for
BIM011 warning required property set or property (required_properties) missing
BIM012 warning quantity without a numeric value, negative quantity, or none of the required quantities (required_quantities) declared with a positive value

List them with bimora rules.

Results

Each finding has: rule_id, severity (info, warning, error), element_id (GlobalId, or #<step id> when missing, or empty for model-level findings), ifc_class, element_name, description, source_property and recommendation. Findings are ordered by severity (errors first), then rule.

bimora validate model.ifc --min-severity warning --json --output findings.json
bimora validate model.ifc --fail-on warning      # exit 1 when warnings or errors exist
bimora validate model.ifc --fail-on never        # always exit 0

Configuration

A JSON or TOML file; keys you omit keep their defaults. Unknown keys are rejected.

[required_properties]                 # PropertySet.Property per IFC class
IfcWall = ["Pset_WallCommon.IsExternal", "Pset_WallCommon.FireRating"]

[required_quantities]                 # each inner list: at least one of these, with a positive value
IfcSpace = [["NetFloorArea", "GrossFloorArea"]]

classification_required_for = ["IfcWall", "IfcSlab", "IfcSpace"]
material_required_for = ["IfcWall", "IfcSlab"]

[rules.BIM009]
severity = "info"                     # or enabled = false

Defaults: walls need Pset_WallCommon.IsExternal, .LoadBearing, .FireRating; doors and windows need IsExternal in their common property set; spaces need Pset_SpaceCommon.Reference; spaces need a floor area, walls a side area and a length, slabs an area; classification and material are expected on walls, slabs, spaces (classification), doors, windows, columns, beams and roofs (material). These defaults are a starting point, not a standard — set your project's information requirements in a configuration file.

See examples/validation-config.toml.