Repository navigation
feat(elements): bind Revit 2023 doors and windows to their host wall (#421) (RE-85) - #443
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 00:47
Bugbot couldn't run - usage limit reachedBugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit. A user or team admin can review and increase usage limits in the Cursor dashboard. (requestId: serverGenReqId_1f935e9a-7186-4f08-9a43-08c62dd50afc) |
DrunkOnJava
force-pushed
the
feat/2023-opening-hosts
branch
from
September 28, 2026 00:48
b45c212 to
946608c
Compare
3 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
Revit 2023 doors and windows now cut their host wall: RE-85's host rule applied to 2023's
u32reference lists (RE-81). On the two 2023 projects measured, all 30 take the wall Revit's filled opening voids (none had a host before).Motivation
#421: 2023 exports wrote doors and windows with no opening at all, where Revit fills 19 openings on
Exemplo_dataand 11 onmodelo_bim.Changes
partition_schema_mvp::attach_host_candidates, factored out ofopening_instances_from_records(behaviour unchanged for 2024/2025), now also runs inrecover_2023_recordson each door and window record, followed bybind_opening_hosts.Testing
tools/re/opening_hosts_vs_ifc.pyandtools/re/openings_vs_ifc.pyagainst Revit's own IFC4 exports (local only,_corpus_candidates/oracles/ribeiro):Exemplo_data(2023)modelo_bim(2023)Einhoven (2023, no Revit export): its 2 windows now fill openings;
validate-real-ifc.pypasses on it.-D warnings, rustdoc-D warningstools/ci/verify-real-files.sh --profile ciwith both corpora: passcargo +1.85.0 check --profile ci --all-targets; fuzz workspace checkAudit-honesty checklist
Legal and contribution hygiene
Breaking changes
None.
Related issues
Refs #421, #439.
Note
Medium Risk
Changes IFC opening/host relationships for all releases that use this partition path; two Snowdon elements still disagree with Revit when several walls are named.
Overview
RE-85 replaces RE-23’s “slot immediately before own ElementId” host rule with a scan of the door/window reference list at
+0x88: exported wall ids are ordered nearest below the record’s id, then nearest above, andbind_opening_hostspicks the first candidate that is not a curtain wall (after curtain walls are attached in the partition pass).On Snowdon Towers, filled openings that match Revit’s host wall jump from 107 → 192 of 194; previously unhosted opening-cut families (RE-84) can void the correct wall, and docs/README metrics are updated accordingly. Core Interior stays 138/138.
The same
attach_host_candidates+bind_opening_hostspath runs inrecover_2023_records, so Revit 2023 doors/windows can get host bindings from 2023 reference lists (aligned with the PR’s #421 motivation). Research additions:probe_re85_opening_host_candidates,tools/re/opening_hosts_vs_ifc.py, andRE-85-opening-host-candidates.md.Reviewed by Cursor Bugbot for commit b45c21265385af477b738b16c623ac695efa16fc. Configure here.