Skip to content

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
DrunkOnJava merged 1 commit into
mainfrom
ci/psets-opening-keys
Oct 30, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
ci/psets-opening-keys

Conversation

@DrunkOnJava

Copy link
Copy Markdown
Owner

Summary

tools/re/psets_vs_ifc.py keys an IfcOpeningElement by 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.Reference and FireExit, and 140 Reference values on openings in all. The census keyed every object by its Tag, and Revit's export writes several openings with one Tag, the ElementId of the element they belong to:

  • the door drawn as an opening (O-4:O-4.8x21:1383546:1), filled by its IfcDoor, host an IfcWall, with no Pset_OpeningElementCommon at all (187 on the office as built);
  • one to three further openings with no filling, named after the wall or door they cut (Basic Wall:VS-2:1352055), each holding Reference (the door's type name) and FireExit (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' Reference on rvt-rs's IfcCurtainWall (their Tag is 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_of keys an opening opening:<Tag>:filled or :void; every other object is keyed as before (key_of is unchanged, qtos_vs_ifc.py still imports it).
  • The values on openings rvt-rs does not write are printed as their own line with a count per property, not dropped.
  • changelog.d/changed/psets-opening-keys.md.

Testing

Measure run 41110441640 (--ref ci/psets-opening-keys, code ccf5b0f as in run 41106505898, psets_vs_ifc on every model, office and R2025). Per-model census rows against run 41106505898:

model before after
office as built Pset_OpeningElementCommon.Reference 168, equal 28, missing 140; FireExit 31, missing 31 Reference 28, equal 28, missing 0; FireExit not scored
office at permit Reference 175, equal 28, missing 147; FireExit 37, missing 37 Reference 28, equal 28, missing 0
RE1 Architecture Reference 2, missing 2 not scored (counted apart: 2)
Core Interior, RE1 Electrical, Mechanical, Plumbing, the 23 R2025 models identical

Equal (44,067 as built, 44,249 at permit) and different (56) do not move. One Pset_EnvironmentalImpactIndicators.Reference value 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 (179 Reference, 31 FireExit, 179 Pset_EnvironmentalImpactIndicators.Reference, 101 each of the glazing properties).

  • Verified end to end on real Revit files: the BIM4LCA office (CC BY-SA 4.0) and the R2025 models, against Revit's own exports, by Measure run 41110441640
  • The scorer ran locally on the run 41105701829 exports of both office files, matching the CI rows

Breaking changes

None.

Related issues

Refs W7 (docs/release-1.0-criteria.md).

…it, so Revit's further cuts are not scored against rvt-rs's door opening (W7)
@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) October 30, 2026 19:00
@DrunkOnJava
DrunkOnJava merged commit 514bca8 into main Oct 30, 2026
30 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/psets-opening-keys branch October 30, 2026 19:06
@DrunkOnJava

Copy link
Copy Markdown
Owner Author

Owner review: the key change applies only to IfcOpeningElement (key_of is unchanged for qtos_vs_ifc). Values on keys rvt-rs does not write were silently dropped before; for openings they are now printed on their own line, so nothing is hidden. rvt-rs's own door openings carry IfcRelFillsElement, so they key as filled and still pair with Revit's filled ones. Per-model rows in the body (run 41110441640): equal and different unchanged on every model, missing drops only by the mis-keyed opening values. The unwritten openings themselves are now tracked as #1165. Armed once CI passes.

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.
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.
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Repository owner deleted a comment from chatgpt-codex-connector Bot Oct 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant