Skip to content

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
DrunkOnJava merged 3 commits into
mainfrom
feat/floor-void-env-reference
Nov 9, 2026
Merged

DrunkOnJava merged 3 commits into
mainfrom
feat/floor-void-env-reference

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Nov 9, 2026 •

Copy link
Copy Markdown
Owner

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.Reference as well as Pset_OpeningElementCommon.Reference, which is how Revit's export writes every opening.

Motivation

#1193 lists the opening Reference among W7's remaining values. The property census of the BIM4LCA office with Revit's set placement on (Measure 42656294752, main at 060e8f0a) has Pset_EnvironmentalImpactIndicators.Reference missing on 37 values as built (VP-1 x36, YP-1 x1) 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's Pset_OpeningElementCommon.Reference already 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's Reference in 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_count holds both values of each such opening, so decoded.parameter_value_count is still the file's Pset_ values.
  • changelog.d/added/382-floor-void-opening-environmental-reference.md, the report RE-382, and the two Core Interior witness observations and the IFCPROPERTYSET pin of 2024-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 passed on the final head
  • Verified end to end on real Revit files: the unfiltered Measure with every flag and holdout=true, run 42657527737 (head 72160545 against main at 8b8892df, 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 gates passes; 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.
  • Core Interior's 62 floor voids gain the Environmental set (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 the run's witness-*.json and both verdicts replay PASS with the verdict files unchanged; the IFCPROPERTYSET pin moves 6,514 to 6,578 (it stood inside its tolerance at the 6,516 measured).

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: RE-382 section 3 and the changelog fragment.
  • If a new limitation was introduced, it is documented in the PR body and in-code: the rule is measured on the BIM4LCA office's two files and on Snowdon Towers (Revit 2024), and no export of a later release has a floor void to check it against (RE-382 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-382.

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) 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.
  • No new test fixtures

Breaking changes

None.

Related issues

Refs #1193 (W7), RE-237, RE-381.

…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.
@DrunkOnJava
DrunkOnJava marked this pull request as ready for review November 9, 2026 17:35
@DrunkOnJava
DrunkOnJava merged commit a9e0574 into main Nov 9, 2026
63 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/floor-void-env-reference branch November 9, 2026 18:23
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