Skip to content

feat(ifc): a wall's profile opening carries its wall's type name as Reference in both sets, and its profile's area where the wall has base quantities (#1193) (RE-381) - #1613

Merged
DrunkOnJava merged 3 commits into
mainfrom
feat/pocket-opening-reference
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/pocket-opening-reference

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

A wall's profile opening (RE-380) now carries what Revit's export writes on it: the wall's type name as its Reference in Pset_OpeningElementCommon and in Pset_EnvironmentalImpactIndicators (none where the wall has none), and, where the wall has base quantities, Qto_OpeningElementBaseQuantities.Area, the area of the opening's profile, and no other quantity.

Motivation

#1608 paired the BIM4LCA terrain walls' opening with Revit's, which made W7 count three of Revit's values on it as missing on each terrain file (the two Reference values and the Area), where the unpaired opening had hidden them. A probe run on the five Revit 2024 files with Revit's export (Measure 42648274662, the new scorer pocket_opening_values_vs_ifc.py) shows what Revit writes: on the terrain opening both References are MS-2, the wall's type name, and the only quantity is Area 7.216426890207297 m2, the polygon's area to its full precision; Revit's export of Core Interior writes no property set on any wall or opening and no base quantities (its setup), so it cannot show the rule there; on Snowdon Towers' 13 pocket openings (local only) both sets equal the host's in 26 of 26. The report is RE-381. #1193 lists the opening Reference among W7's remaining values.

Changes

  • src/ifc/step_writer.rs: in the loop of a wall's profile openings, the host's Reference (host_references, as RE-237 does for a floor's void) in both sets where the host has one, and the Area where the wall has a Qto_WallBaseQuantities.Width (the test RE-244 uses for a door's Depth), so --no-base-quantities leaves it out.
  • src/ifc/mod.rs: pset_property_value_count holds the two Reference values of each written profile opening, so decoded.parameter_value_count is still the file's Pset_ values.
  • src/research/partition_schema_mvp/walls.rs: the blank doc line between the two paragraphs of elevation_profile_pockets that rvtReview's read of fix(ifc): a wall's edited elevation profile is cut in its body, and its openings are the pockets of the profile against its convex hull, as Revit's export writes them (#1607) (RE-380) #1608 noted.
  • tools/re/pocket_opening_values_vs_ifc.py: the scorer that prints what Revit's export writes on a profile wall's pocket openings (it scores nothing).
  • changelog.d/added/381-profile-opening-reference-and-area.md, the report RE-381.

Testing

Unit tests are banned in this repository; nothing here is a pure helper. The change is shown end to end on real files:

  • full / CI passed on the final head (c30aa78c)
  • Verified end to end on real Revit files: an unfiltered Measure with every flag and holdout=true against main (04f21f71), run 42649417280 on 29cdfdb5 (the two commits after it change witness observations and docs only). Five of the 118 exports move (Core Interior, the two terrain files, rac_basic and Snowdon Towers Architectural, all Revit 2024), and the other 113, the 18 held-out models among them, are byte for byte main's. On each terrain file the opening's three values now pair (psets_vs_ifc equal 82 to 84 and missing 31 to 29, qtos_vs_ifc equal 16 to 17 and missing 29 to 28, 28 to 27 on timber, different unchanged (0 for the properties, and 0 for the quantities except the timber file's one), values Revit does not write unchanged (2 properties, 0 quantities); the Area is Revit's to its full precision). No scorer of a wall's body, top, height, ends or layers, or of an opening's box or volume, moves on any model. decoded.parameter_value_count moves by exactly the Reference values written (2 on Core and each terrain file, 8 on rac_basic, 26 on Snowdon). same-project gates is success on 29cdfdb5: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save; it names rac_basic, whose 2024 save moves and whose 2025 to 2027 saves do not. Locally, on the run's CI-built binaries: Snowdon's two Reference properties go from 56 to 66 equal against Revit's export (counts only). The numbers are in RE-381 section 3.
  • Core Interior's wall 55840 gets the Reference pair and the Area on its opening (rvt-rs writes the sets there as for every other element of Core, whose Revit export writes none), so both committed rvt-rs witness observations are refreshed from the CI artifact (IFCPROPERTYSET +2, IFCELEMENTQUANTITY +1, IFCQUANTITYAREA +1, IFCRELDEFINESBYPROPERTIES +3) and both verdicts replay PASS with the verdict files unchanged.

Audit-honesty checklist

  • README / docs reflect the current state after this PR: the report and the changelog fragment; no capability row changes.
  • A user-visible change has its entry as a fragment under changelog.d/added/.
  • If a limitation was resolved, the docs are updated: with the Measure (RE-381 section 3).
  • If a new limitation was introduced, it is documented in the PR body and in-code: the Area rests on one opening of one wall, in both terrain files; it is also written on Core Interior's and Snowdon Towers' pocket openings, where Revit's exports write no base quantities, so it is checked on neither (RE-381 section 4).
  • Commit messages describe what changed and why
  • No emojis in code, docs, or commit messages
  • No private paths, personal email addresses, or internal jargon in committed files
  • Reverse-engineering finding: the report RE-381.

Legal and contribution hygiene

  • I agree this work is licensable under Apache-2.0 (see CONTRIBUTING.md)
  • This PR contains no Autodesk proprietary source, decompiled internals, or NDA'd SDK content (see CLEANROOM.md). Contributor declaration: every fact here comes from byte observations of the BIM4LCA office's files (CC BY-SA 4.0), Autodesk's Core Interior and Snowdon Towers samples, with Revit's own IFC4 exports of them. No Autodesk or ODA SDK source, disassembly, leaked document or NDA material was used, and nothing was copied or translated from revit-ifc.
  • No new test fixtures

Breaking changes

None.

Related issues

Refs #1193 (W7), #1607 (RE-380).

…eference in both sets, and its profile's area where the wall has base quantities (#1193) (RE-381)

RE-380 paired the BIM4LCA terrain walls' opening with Revit's, which counted
three of Revit's values on it as missing: Reference in Pset_OpeningElementCommon
and in Pset_EnvironmentalImpactIndicators, and Qto_OpeningElementBaseQuantities
.Area. A probe run on the five Revit 2024 files with Revit's export (the new
scorer pocket_opening_values_vs_ifc.py) shows Revit writes the wall's type name
as both References, and the area of the opening's profile (7.216426890207297
m2, equal to the polygon's) as the only quantity; Core Interior's wall has no
Reference and its opening no set; Snowdon Towers' 13 pocket openings carry both
sets, equal to the host's.

The writer emits the Reference pair from the host's Reference where it has one
(as RE-237 does for a floor's void) and the Area where the wall has a
Qto_WallBaseQuantities.Width (as RE-244 does for a door's Depth), and the count
of Pset values holds the two. The doc comment of elevation_profile_pockets gets
the blank line between its paragraphs that its read lacked.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 16:00
… opening's two Reference sets and its Area; RE-381 says Core's export cannot show them (#1193)

The CI run of the first commit failed both witness replays with REPLAY_DRIFT on
the rvt-rs observation, as the opening of wall 55840 now gets the Reference
pair and the Area (IFCPROPERTYSET +2, IFCELEMENTQUANTITY +1, IFCQUANTITYAREA
+1, IFCRELDEFINESBYPROPERTIES +3, IFCPROPERTYSINGLEVALUE +2). The observations
are the CI artifact's for both artifacts; both verdicts replay PASS against
them and the verdict files are unchanged.

Revit's export of Core Interior writes no property set on any wall or opening
(its setup), so it cannot show what Revit writes there: the report and the
changelog fragment said the wall had no Reference. rvt-rs writes the sets there
as it does for every other element of Core.
…he terrain opening's three values pair, and Core Interior's witness is the Measure's own (#1193)

Measure 42649417280 (118 models, the code commit 29cdfdb against 04f21f7): same-project gates success on 29cdfdb; no scorer of a wall's body, top, height, ends, layers or an opening's box and volume moves on any model; the 18 held-out models do not move. Docs only after the measured commit.
@DrunkOnJava
DrunkOnJava merged commit 6533e8f into main Nov 9, 2026
36 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/pocket-opening-reference branch November 9, 2026 16:34
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