Repository navigation
fix(ifc): a file whose Levels include no building story is written with no storey, as Revit's export writes it, instead of storeys made up from its elements' heights (#1842) - #1868
Conversation
…ding Story setting, to tell why rst_basic's Levels give no storeys (#1842)
…here the others sit, with no names, so it runs on held-out models (#1842)
…the building story below that Level, as Revit's exporter places it (#1842)
…th no storey, as Revit's export writes it, instead of storeys made up from its elements' heights (#1842)
|
Unfiltered Measure 43346353876 at
|
|
Self-approved at |
## Summary Release metadata for v0.20.0 (RELEASE.md, steps 4 to 7), cut from `main` at `925c482d` and merged with `main` up to `58395b62` (#1855, #1860, #1861, #1863, #1866, #1867 and #1868 among it): - every version file moves to 0.20.0 (`tools/release/bump_version.py`), and `CITATION.cff` is dated 2026-11-12; - the fragments under `changelog.d/` are assembled into a `[0.20.0]` section, with its introduction and "Upgrading from 0.19" (the work-budget bullet says a stop warns and the export is still written, as #1855 settled); - the README's release lines name v0.20.0; - Core Interior's two witness observations and verdicts, and the two synthetic IFC fixtures, are taken from CI's artifacts for `e10580d0`: only `witness_version`, the verdict hashes, the retired "Unmapped Revit unit identifiers" warning (RE-445) and an unset transparency (#1820) differ. Measured and rehearsed: - the comparison with 0.19.0 is in the section, from Measure runs [43357862138](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357862138) (unfiltered, `58395b62` against `v0.19.0`'s `09b18bd3`: 49 of 146 exports move, 0 census regressions, 0 body regressions) and [43357979238](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43357979238) (timing: no file more than 3% slower except one that reads 0.98 in the earlier run of the same code, no peak higher by more than 2%, the samples of 2023 to 2027 at a median 0.76 times the peak memory). The release adds only notes, witness files, version strings and fixtures to `58395b62`, so a run of `main` is the run of the release; a run of this branch would move every export through the header's version string; - `publish.yml` rehearsal on `d9946f4b`: [43359414819](https://github.com/DrunkOnJava/rvt-rs/actions/runs/43359414819) passed. Only the changelog changed since. **Why now.** `main` holds today's crafted-file and security fixes (#1815, #1831, #1833, #1845), and neither GlobalId move. #1850 is back in draft until the tag, and #1854's fix is #1859. Those two ship together in 0.21.0 (#1854 comment 6841360704). ## Testing - `python3 tools/release/changelog.py check` passes: no fragment is left. - `bump_version.py` checks the version files with the preflight's own `check_versions`. - The PII guard runs `release_preflight.py` on this PR. - Timing against 0.19.0 is in the section, from run 43357979238 on `58395b62`. ## Related issues Release 0.20.0. Milestone `0.20.0`.
Summary
Stacked on #1867 (its commits are this branch's first). This PR's own change is
3aba96fd.When the recovered Levels include no building story, rvt-rs now writes no storey and contains the elements in the building, as Revit's export does. Before, it fell back to storeys made up from walls or from its elements' record-box elevations.
Every one of the 9 Levels of Autodesk's
rst_basicsample, saved by Revit 2016 to 2027, has its Building Story setting off (probe_1842_level_storeys, run 43344165070). With no Level storey, the export fell back to storeys named from element heights: "Elevation -1.949 ft" and "Elevation -1.148 ft" on 2024 to 2027, binding 14 of the elements. No Revit export has such a storey.Revit's exporter makes no storey from a Level that is not a building story. It gives one below every building story none, so with no building story at all no element is on a storey and the elements are contained in the building (revit-ifc, CLEANROOM.md source 5:
Exporter.BeginDocumentExportCommon, and therelatedElementSetForBuildingbranch of its containment).rst_basicis the only file Measure holds with no building story; it has no Revit export there.Changes
apply_partition_level_storeysreturns whether Levels were recovered. With Levels recovered and no storey left, the ArcWall path andapply_element_record_storeysmake up no storey.changelog.d/fixed/1842-no-building-story.md.Testing
Rows, registered before the run. It runs against #1867's head
fd57a047, so it shows only this change.rst_basicsaves, 2016 to 2027, and nothing else. Every otherifc.sha256anddiagnostics.jsonis identical: every other file with recovered Levels has a building story among them.rst_basic.storey_count0 (from 5 on 2016 to 2023 and 2 on 2024 to 2027), andstorey_bound_elements0 (from 36 and 14). NoIfcBuildingStoreyis written, and every element is in theIfcBuilding.storeys_vs_ifcwithout a Revit export counts every element as on no storey.same-project gatespass. Any comparison of storeys between saves is reported.rst_basiclevel binds that differ between its 2025 and 2026 saves are read again here.The run: unfiltered Measure of this head against
fd57a047, every scorer, with the samples, BIM4LCA, R2025,rac_advancedand the held-out models.rustfmt --edition 2024 --checkpasses; CI runs the restAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Part of #1842. Lands after #1867.