Repository navigation
ci(measure): count apart IFC4 properties an IFC2X3 reference export cannot write (#1016) - #1118
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
October 30, 2026 00:48
4 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…1016) (RE-239) (#1120) ## Summary rvt-rs writes an element's type name as `Reference` only in the 34 IFC4 standard sets where a measured Revit export writes it with the same value (`CONFIRMED_REFERENCE_SETS`), and in no other set until one does. The maintainer's decisions, 2026-10-29 (RE-239 §7): keep the census set-asides of #1115 and #1118, which Revit's IFC4 exports back, and make `Reference` fail closed everywhere rather than skip the one unconfirmed set found. ## Motivation #1016 (W7). The census set aside 4,210 rvt-rs values its reference exports could not hold. Checked against the office's and R2025's IFC4 exports, 24 of their 25 properties are written equal there and never different; `Pset_ShadingDeviceCommon.Reference` is in no export. rvt-rs could also write `Reference` in 9 further sets no export confirms. ## Changes - `src/ifc/export_content.rs`: `CONFIRMED_REFERENCE_SETS`, the 34 sets (31 equal on the office and R2025 IFC4 exports, and the duct fitting, duct segment and pipe fitting types on RE1's IFC2X3 exports); `reference_set_kinds` keeps only those. - `tests/fixtures/project-counts/2024-core-interior{,-slim}.json`: `IFCPROPERTYSET` 6,528 to 6,508, with a dated note. - `research/witness/...core-interior*/observations/rvt-rs.json`: `IFCPROPERTYSET` 6,528 to 6,508, `IFCPROPERTYSINGLEVALUE` 29,102 to 29,082, `IFCRELDEFINESBYPROPERTIES` 7,062 to 7,042, copied from this PR's CI artifact; both verdicts replay PASS, verdict files unchanged. - RE-239 §7 (the coverage table and every set left out, with why), `changelog.d/changed/shading-device-reference.md`. ## Testing Measure [40986458174](https://github.com/DrunkOnJava/rvt-rs/actions/runs/40986458174), against main at b31c3f4, every model and scorer: - Exports that move: Core Interior (its 20 shading devices lose `Pset_ShadingDeviceCommon`), RE1 Electrical (its 5 alarms lose `Pset_AlarmTypeCommon`) and BIMcollab's 2015 structural model (its footings' sets). Every other export is byte-identical. - Census: equal, different and missing unchanged on every model; RE1 Electrical's values Revit does not write 5 to 0; Core Interior's set-aside 4,130 to 4,110. - 1,227 of 1,229 scorer outputs byte-identical; the two that differ are those census lines. Unit tests: none (banned). ## Audit-honesty checklist - [x] RE-239 §7 lists the 34 sets and every set left out, with why - [x] Changelog fragment - [x] No private paths, emojis or jargon ## Legal and contribution hygiene - [x] Apache-2.0 ## Breaking changes None in the API. Exports of models with shading devices, alarms, footings, reinforcing bars, transport elements or ramp flights lose those elements' `Reference` sets. ## Related issues Refs #1016.
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
The W7 property census (
tools/re/psets_vs_ifc.py) now counts apart, where Revit's reference export is IFC2X3, each IFC4 property rvt-rs writes that IFC2X3's definition of its set does not have: that export cannot write it, so it says nothing about whether rvt-rs writes a value Revit's export omits. The definitions are buildingSMART's IFC2X3 property set templates as IfcOpenShell 0.9.0 ships them (ifcopenshell.util.pset.get_template("IFC2X3")). Properties the census already reads from another IFC2X3 set (space coverings, Reference, invert elevation) still count as held.Motivation
Under the strict rule for properties (2026-10-29), "rvt-rs values Revit does not write" is the worklist. On RE1, whose exports are IFC2X3 by Revit 26.2, most of that column was IFC4-only properties.
Changes
tools/re/psets_vs_ifc.py:ifc2x3_holds(set, property); the count apart and its per-property lines.Testing
Measure 40981313275 (
-f ref=main -f nordic=true -f r2025=true -f bimcollab=true -f scorers=psets_vs_ifc):IsExternal(9, 6, 11), furniture types'Reference(23)IsExternalIsExternalEqual, different and missing are unchanged everywhere. What stays is measured, not explained away: RE1 Architecture's 10 mullions'
Pset_MemberCommon.Spanand RE1 Electrical's 5 alarm types'Reference, which IFC2X3 defines and Revit's export does not write. RE1 Plumbing's 2 are on the tank Revit's export leaves out (RE-262).No code or export changes; unit tests: none (banned).
Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #1016 (W7).