Repository navigation
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
Conversation
…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
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.
13 of 15 tasks
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
A wall's profile opening (RE-380) now carries what Revit's export writes on it: the wall's type name as its
ReferenceinPset_OpeningElementCommonand inPset_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 areMS-2, the wall's type name, and the only quantity isArea7.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 aQto_WallBaseQuantities.Width(the test RE-244 uses for a door'sDepth), so--no-base-quantitiesleaves it out.src/ifc/mod.rs:pset_property_value_countholds the two Reference values of each written profile opening, sodecoded.parameter_value_countis still the file'sPset_values.src/research/partition_schema_mvp/walls.rs: the blank doc line between the two paragraphs ofelevation_profile_pocketsthat 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 passedon the final head (c30aa78c)holdout=trueagainstmain(04f21f71), run 42649417280 on29cdfdb5(the two commits after it change witness observations and docs only). Five of the 118 exports move (Core Interior, the two terrain files,rac_basicand 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_ifcequal 82 to 84 and missing 31 to 29,qtos_vs_ifcequal 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_countmoves by exactly the Reference values written (2 on Core and each terrain file, 8 onrac_basic, 26 on Snowdon).same-project gatesis success on29cdfdb5: 15 samples held to their earlier saves, and the Areas on 4 saves and on the 2021 save; it namesrac_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.IFCPROPERTYSET+2,IFCELEMENTQUANTITY+1,IFCQUANTITYAREA+1,IFCRELDEFINESBYPROPERTIES+3) and both verdicts replay PASS with the verdict files unchanged.Audit-honesty checklist
changelog.d/added/.Legal and contribution hygiene
CONTRIBUTING.md)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.Breaking changes
None.
Related issues
Refs #1193 (W7), #1607 (RE-380).