Repository navigation
ci(measure): psets_vs_ifc keys an opening by whether something fills it, so Revit's further cuts are not scored against rvt-rs's door opening (W7) - #1161
Merged
Conversation
…it, so Revit's further cuts are not scored against rvt-rs's door opening (W7)
Owner
Author
|
Owner review: the key change applies only to |
2 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…mns' Slope, the building's Reference, door openings' values (W7) (RE-277) (#1176) ## Summary Adds the probe behind the W7 office findings (RE-275, RE-276) and RE-277, which records three office properties that the `.rvt` does not decide, so none is written: columns' `Slope`, the building's `Reference`, and the door openings' `Reference` and `FireExit`. No export changes. ## Motivation W7 listed these gaps on the BIM4LCA office (Measure run 41104131261). The positive ones got their own PRs (pipes' `InvertElevation` #1169, beams' `Span` #1163, `Slope` #1173 and `Roll` #1174, storeys' `Reference` #1171 and `EntranceLevel` #1172). The rest were looked for in the same pass and have no source in the file, which binds future work, so the evidence is written down: - **Columns' `Slope`** (73 of 279 columns as built, 101 of 345 at permit, 0.0 on all): revit-ifc's `SlopeCalculator` reaches a vertical column only through its last step, the largest top-facing face of the last object of the element's geometry, so the property exists where Revit's API returns a solid there. The probe lists each column's native record. Six columns have a record identical in both files and Revit gives them the property at permit only; twelve identical columns on one level split 5 to 7 by whether a join is user-set; no cell of the attachment-by-join table has the property on every column. - **The building's `Reference`** (`Project Information`): not stored in the file as UTF-16 or UTF-8 text but for two RTF help-text lines, so writing it would guess the exporting session's name for the element. - **Door openings' `Reference` and `FireExit`** (140 and 31 as built): on the openings Revit writes where a door cuts a further wall, which rvt-rs does not write; the door's own filled opening has no set in Revit's export, as in rvt-rs's (the scorer now says so, #1161). ## Changes - `probes/examples/probe_w7_office_gaps.rs`: for a model's parameter definitions, every Level (its native record, saved parameters and the record of its type), and every structural column, structural framing element and pipe (decoded fields, saved parameters and native objects' scalar fields), one JSON line each. - `reports/element-framing/RE-277-office-properties-the-file-does-not-decide.md`, `changelog.d/research/office-properties-not-in-the-file.md`. ## Testing Unit tests are not added. The probe ran on GitHub's runners on both office files and the 24 R2025 models: Measure runs 41111710319 (office as built, an earlier version of the probe), 41113408569 (office and R2025, this probe). The report's counts are from those outputs joined with Revit's exports by `Tag`; the commands that reproduce them are in the report. - [x] Verified end to end on real Revit files: the BIM4LCA office (CC BY-SA 4.0) and puzzbobb's R2025 models (Apache-2.0), against Revit's own exports, by the Measure runs above - [x] Reverse-engineering finding: a reproducible probe is included, and the report states its status (negative) ## Breaking changes None. ## Related issues Refs W7 (`docs/release-1.0-criteria.md`), #1161, #1169, #1163, #1171, #1172, #1173, #1174.
3 tasks done
DrunkOnJava
added a commit
that referenced
this pull request
Oct 30, 2026
…t, so Revit's further cuts are not scored against rvt-rs's door opening (#1016) (#1188) ## Summary `tools/re/qtos_vs_ifc.py` keyed every object by its `Tag`, so the openings Revit's export writes with one `Tag`, a door's own opening and the further cuts the door or a curtain wall makes in other hosts, collapsed to one key: a later one overwrote an earlier one, and their quantities were scored against rvt-rs's door opening. #1161 fixed the same thing in the property census. This uses its `property_key_of` (`opening:<Tag>:filled` or `:void`), records on each opening the classes of what fills it so RE-235 §5's door-opening rule still finds the door, and counts the quantities on openings rvt-rs does not write apart, on their own line (#1165 tracks those openings). No export changes. ## Measured `qtos_vs_ifc` on the same exports of `main` at f73908b, every model, main's scorer (run 41136016672) against this branch's (run 41136020671). Only the office moves: | office | before | after | |---|---|---| | as built | 39,721 / equal 28,020 / different 1 / missing 11,700 | 39,388 / 28,020 / 1 / 11,367 | | at permit | 40,013 / 27,966 / 1 / 12,046 | 39,679 / 27,966 / 1 / 11,712 | - Counted apart, on openings rvt-rs does not write: 527 as built (Width 176, Height 175, Depth 169, Area 5, Volume 2), 528 at permit. - RE-235 §5's swapped door-opening `Width` and `Height`: 191 → 187 each. The 187 are exactly the door openings whose `Depth` is Revit's (187 equal); the 4 others were further cuts sharing a door's `Tag`. - Now scored as missing, visibly: 25 window openings' `Width` and `Height`. - Every other model's output is byte-identical. ## Changes - `tools/re/qtos_vs_ifc.py`: `property_key_of` for objects and quantity sets, filling classes on openings, the count-apart line. - `docs/release-1.0-criteria.md` (W7's quantity totals), `changelog.d/changed/qtos-opening-keys.md`. ## Testing - [x] The two Measure runs above. No unit tests. - [x] No `src/` change; no export moves. - [x] `changelog.py check` and `api-doc-ids.py` pass. ## Related issues Refs #1016, #1165. Follows #1161.
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
tools/re/psets_vs_ifc.pykeys anIfcOpeningElementby whether something fills it, so Revit's further openings are no longer scored against rvt-rs's door opening, and counts the values on openings rvt-rs does not write apart instead of dropping them. No export changes.Motivation
W7 listed 31 door openings missing
Pset_OpeningElementCommon.ReferenceandFireExit, and 140Referencevalues on openings in all. The census keyed every object by itsTag, and Revit's export writes several openings with oneTag, the ElementId of the element they belong to:O-4:O-4.8x21:1383546:1), filled by itsIfcDoor, host anIfcWall, with noPset_OpeningElementCommonat all (187 on the office as built);Basic Wall:VS-2:1352055), each holdingReference(the door's type name) andFireExit(false).The scorer collapsed them to one key, so the values on the unfilled ones were scored against rvt-rs's filled door opening, which Revit gives none: writing them there would add values Revit's export omits. The same collision put 69 curtain-wall cuts'
Referenceon rvt-rs'sIfcCurtainWall(theirTagis the wall's) and the 39 fire hose cabinets' on nothing it writes. All of these are openings rvt-rs does not write (a geometry task), so the 140 + 31 are not missing on objects rvt-rs writes.Changes
tools/re/psets_vs_ifc.py:property_key_ofkeys an openingopening:<Tag>:filledor:void; every other object is keyed as before (key_ofis unchanged,qtos_vs_ifc.pystill imports it).changelog.d/changed/psets-opening-keys.md.Testing
Measure run 41110441640 (
--ref ci/psets-opening-keys, code ccf5b0f as in run 41106505898,psets_vs_ifcon every model, office and R2025). Per-model census rows against run 41106505898:Pset_OpeningElementCommon.Reference168, equal 28, missing 140;FireExit31, missing 31Reference28, equal 28, missing 0;FireExitnot scoredReference175, equal 28, missing 147;FireExit37, missing 37Reference28, equal 28, missing 0Reference2, missing 2Equal (44,067 as built, 44,249 at permit) and different (56) do not move. One
Pset_EnvironmentalImpactIndicators.Referencevalue on a void opening, which the old key hid behind another, is now scored and missing (27 to 28). The values counted apart on the office as built: 591 on openings (179Reference, 31FireExit, 179Pset_EnvironmentalImpactIndicators.Reference, 101 each of the glazing properties).Breaking changes
None.
Related issues
Refs W7 (
docs/release-1.0-criteria.md).