ifc-step
STEP physical file (ISO 10303-21) codec for the IFC model.
| Status | Implemented |
| Latest release | 0.6.5 (2026-11-09) |
| Registries | crates.io ifc-step |
| Via the facade | openbim-ifc feature step |
| API documentation | rustdoc · docs.rs |
| Source | crates/ifc-step/ |
Overview
ifc-step — IFC adaptation over generic ISO 10303-21 syntax.
Generic tokenization, escaping, records, parameters, sections, parsing, writing, partitioning, spans, diagnostics, and event sinks live in openbim_step. This crate owns only conversion between that generic substrate and ifc_model::Model plus IFC codec detection and I/O policy.
| Module | Role |
|---|---|
codec | StepCodec/StepReader: detection, parse policy, I/O |
error | STEP-specific failure modes, ReadFailure |
location | Lines, columns and quotes of the source: SyntaxLocation, diagnostics |
parser | Generic exchange to IFC record model |
writer | IFC record model to physical file |
Depends on
Changes
Latest release, 0.6.5 (2026-11-09):
Fixed (#668)
- Moved to
openbim-step0.11.4. A lenient read's recovery now stops before the next#id =, so a record missing its;no longer swallows the record after it: that record is kept, and a conflicting duplicate id among them is reported as aDuplicateIddiagnostic. Unit resolution therefore refuses it as damaged instead of trusting it or calling the model incomplete.
Fixed (#626)
- Two records sharing one instance id are reported on every read, not only under
check_references(true). A strict read now refuses the file withStepError::DuplicateId(ModelError::DuplicateIdthrough the codec), naming the id and, inStepError, the later record's offset (public throughIndex::scan;ModelErrorcarries the id alone): this is a behaviour change, a strict read of such a file used to succeed silently with the later record.Index::scanrefuses such a file too. A lenient read keeps the later record, as it does undercheck_references(true), and reports aDuplicateIddiagnostic carrying the instance, span, position and excerpt.StepReader::checkrefuses the same files. Detection happens on insert, with no second pass over a duplicate-free file.SyntaxLocation::of_step_errorlocates the error. Semver: patch (behaviour change: a strict read of a file with duplicate ids now fails).
Full history: crates/ifc-step/CHANGELOG.md