Interoperability¶
Module: bimora.interoperability.
JSON export — bimora-os.model v1¶
bimora export model.ifc --format json --output model.json
The document contains file facts, project, units, spatial nodes, spaces and elements with properties, quantities,
materials and classifications. Its JSON Schema ships with the package (bimora/schemas/model.schema.json);
validate any document with:
from bimora import export_model
from bimora.interoperability.json_export import validate_json
document = export_model("model.ifc", "json")
errors = validate_json(document) # [] when valid
CSV export¶
bimora export model.ifc --format csv --output out/
Writes <name>.elements.csv, <name>.properties.csv (one row per property value) and <name>.quantities.csv
(value, unit, SI value, kind, source). Text cells starting with =, +, -, @, tab or carriage return are
prefixed with ' so spreadsheet applications do not run them as formulas; numbers are unchanged.
Field mapping and normalisation¶
A mapping selects and renames columns, and can normalise units:
{
"columns": {"global_id": "GUID", "storey": "Level", "Pset_WallCommon.FireRating": "Fire rating",
"quantity:NetSideArea": "Net side area (m2)"},
"units": "si"
}
Sources: element fields (global_id, ifc_class, name, long_name, object_type, tag, predefined_type,
type_name, storey, materials), PropertySet.Property, or quantity:<Name>. units is "si",
"imperial" or null. Missing values stay empty.
bimora export model.ifc --format csv --mapping examples/mapping.json --output mapped.csv
Helpers in bimora.interoperability.mapping: normalize_property_name("Fire Rating") → "fire_rating",
normalize_value(".T.") → True, normalize_quantity(q, "si" | "imperial").
Identifier mapping¶
bimora ids model.ifc --csv --output ids.csv
GlobalId ↔ UUID (guid_to_uuid, uuid_to_guid), STEP id, class, name and tag for every entity.
Asset manifests — bimora-os.asset-manifest v1¶
A generic list of delivered files with SHA-256 hash, size, media type and optional links to IFC GlobalIds.
bimora manifest create deliverables/ --output manifest.json
bimora manifest check manifest.json --root deliverables/ --model model.ifc
check reports schema errors, unsafe paths (absolute, .., backslashes), missing or changed files and links to
GlobalIds that are not in the model. Symbolic links are never followed.
BCF metadata reader¶
bimora bcf issues.bcf # add --json, --no-people to redact authors / assignees
Reads BCF-XML 2.1 and 3.0 archives: version, and per topic GUID, title, type, status, priority, dates, labels, comment and viewpoint counts and referenced IFC GlobalIds. Snapshots are not read; nothing is written. Archives are read in memory with size, entry and compression-ratio limits; XML with DTD / entity declarations is refused.
Not provided¶
Native Revit, Archicad or Navisworks conversion is not provided. Export IFC (and BCF) from those tools.