Repository navigation
feat(ifc): the opening of a host's own geometry carries its host's type name as Reference in both sets, as Revit's export writes it (#1193) (RE-382) - #1617
Merged
Conversation
…pe name as Reference in both sets, as Revit's export writes it (#1193) (RE-382) A floor's sketch void and a face-hosted cut (RE-237) wrote the host's Reference in Pset_OpeningElementCommon only; Revit's export holds it in Pset_EnvironmentalImpactIndicators too, on 37 of the BIM4LCA office's openings as built, 36 at permit and 12 of Snowdon Towers'. decoded.parameter_value_count counts both.
…sured on the office, and the Core Interior witness and pin count their 62 sets (#1193) (RE-382) The unfiltered Measure 42657527737 of 7216054 against main at 8b8892d: 13 of 118 exports gain only the Environmental set on their openings of a host's own geometry (Core Interior 62, the office 40 as built and 39 at permit, the MEP samples 9 each, Snowdon Towers 12 and 7), the census's 37 and 36 missing values become equal with different and the values Revit does not write unchanged, and no held-out export moves. The Core Interior witness observations of both artifacts are the run's witness files (replay PASS, verdict files unchanged) and the IFCPROPERTYSET pin moves 6514 to 6578.
…iagnostics' count after the change (#1193) (RE-382)
DrunkOnJava
marked this pull request as ready for review
November 9, 2026 17:35
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 opening of a host's own geometry (a floor's sketch void, and the opening a face-hosted door or window cuts in its host, RE-237) now carries its host's type name as
Pset_EnvironmentalImpactIndicators.Referenceas well asPset_OpeningElementCommon.Reference, which is how Revit's export writes every opening.Motivation
#1193 lists the opening
Referenceamong W7's remaining values. The property census of the BIM4LCA office with Revit's set placement on (Measure 42656294752,mainat060e8f0a) hasPset_EnvironmentalImpactIndicators.Referencemissing on 37 values as built (VP-1x36,YP-1x1) and 36 at building permit (the census holds one value per key, and the roof's 4 hatch openings share one), and the unfilled-openings scorer shows them: every opening Revit's export holds in a floor or roof (the floor voids, 36 and 35, and the roof's hatch openings) has both sets in Revit's export and one in rvt-rs's. Snowdon Towers (Revit's IFC4 export, local only) has 12 more on its floors, each the host's type name, which rvt-rs'sPset_OpeningElementCommon.Referencealready equals. RE-237 measured the Common set only; the wall's cut openings (RE-321, RE-338) and the profile openings (RE-381) already carry both. The report is RE-382.Changes
src/ifc/step_writer.rs: in the loop of a host's own openings (VoidOpening,HostedCutOpening), the host'sReferencein both sets, as the loops of a wall's cut openings and of its profile openings write it.src/ifc/mod.rs:pset_property_value_countholds both values of each such opening, sodecoded.parameter_value_countis still the file'sPset_values.changelog.d/added/382-floor-void-opening-environmental-reference.md, the report RE-382, and the two Core Interior witness observations and theIFCPROPERTYSETpin of2024-core-interior*.json, which count the 62 sets the export gains there.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 headholdout=true, run 42657527737 (head72160545againstmainat8b8892df, before feat(ifc)!: every element that would be a box in a Revit 2023 to 2027 file is drawn from the mesh Revit saved for it by default (#1191) #1610). 13 of 118 exports moved, by property sets only: the office gains 40 sets as built and 39 at permit and the census's missing values go 1,375 to 1,338 and 1,385 to 1,349 with different still 1 and values Revit does not write still 1 and 6; Core Interior gains 62, the MEP samples 9 each (2024 to 2027) and Snowdon Towers 12 and 7. No body or other scorer line moves, and none of the 18 held-out exports does (the held-out set does not exercise the rule).same-project gatespasses; it checks bodies and Areas across saves, which this does not touch. Why 40 sets for 37 values: Measure 42662314183 kept the office's own export (the roof's 4 hatch openings share one key). RE-382 section 3.witness-*.jsonand both verdicts replay PASS with the verdict files unchanged; theIFCPROPERTYSETpin moves 6,514 to 6,578 (it stood inside its tolerance at the 6,516 measured).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) and Autodesk's Snowdon Towers sample, 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), RE-237, RE-381.