Repository navigation
fix(ifc): write NumberOfStoreys only where every storey contains an element (#1097) (RE-263) - #1119
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 01:52
DrunkOnJava
force-pushed
the
fix/storey-count-unambiguous
branch
from
October 30, 2026 01:53
b6741da to
cbf3b64
Compare
…orey count left out (#1097) (RE-263)
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…tput (0.6.1 to 0.10.0) Taken from this PR's first CI run (synthetic-fixtures artifact, run 41028235014), where both contract checks failed on every platform and nothing else did. What moved since the fixtures were written: the owner-history timestamp is now the fixed one; Pset_BuildingCommon.NumberOfStoreys is gone from the project fixture, as only one of its three storeys contains elements (#1119); and entity numbering and content follow the writer's changes since 0.6.1 and 0.2.0. docs/viewer-demos.json's size hints follow the files.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Pset_BuildingCommon.NumberOfStoreysis now written only where every storey rvt-rs exports contains an element, where Revit's exporters before IFC 26.1 (storeys that contain an element) and since (every storey) give the same number. Elsewhere it is left out, and the census's count-apart for it (#1098) is removed. The maintainer's decision, 2026-10-29: strict, as for every other value.Motivation
#1097, RE-263. A
.rvtdoes not say which exporter will export it, so where the two rules disagree any number rvt-rs writes is wrong for one of them. #1098 had kept IFC4's count and relabelled the disagreement in the scorer instead of narrowing the value.Changes
src/ifc/step_writer.rs: the writer's containment rules (elements in spaces, aggregate parts, folded body pieces) become functions it calls, andevery_storey_holds_an_elementuses the same rules; the building set dropsNumberOfStoreyswhere it is false.src/ifc/mod.rs: the diagnostics'Pset_value count follows (tests/parameter_diagnostics.rs).tools/re/psets_vs_ifc.py: research(ifc): count apart the storey count Revit's exporter before IFC 26.1 writes (#1097) (RE-263) #1098's count-apart removed.tests/spatial_property_sets.rs: RE1's building set is expected withoutNumberOfStoreyswhere a storey of Revit's export holds no element.research/witness/...core-interior*/observations/rvt-rs.json:IFCPROPERTYSINGLEVALUE29,082 to 29,081 (after fix(ifc): write Reference only in the sets a Revit export confirms (#1016) (RE-239) #1120), copied from this PR's CI artifact; both verdicts replay PASS, verdict files unchanged.changelog.d/changed/number-of-storeys-unambiguous.md,changelog.d/research/number-of-storeys.md.Testing
Measure 40985981272, against main at b31c3f4, every model and scorer:
NumberOfStoreysover 30 modelsKept on R2025
01_Wallsonly. The BIM4LCA office loses its two equal values: Revit's export contains an element in all 10 storeys, rvt-rs's in fewer, so rvt-rs cannot rule out the older exporter's count. Every other census value and every other scorer output (1,198 files) is unchanged. Unit tests: none (banned).Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #1097, #1016.