Skip to content

feat(elements): bind Revit 2023 doors and windows to their host wall (#421) (RE-85) - #443

Merged
DrunkOnJava merged 2 commits into
mainfrom
feat/2023-opening-hosts
Sep 28, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
feat/2023-opening-hosts

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Revit 2023 doors and windows now cut their host wall: RE-85's host rule applied to 2023's u32 reference 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_data and 11 on modelo_bim.

Changes

  • partition_schema_mvp::attach_host_candidates, factored out of opening_instances_from_records (behaviour unchanged for 2024/2025), now also runs in recover_2023_records on each door and window record, followed by bind_opening_hosts.
  • The 2023 export warning and module doc no longer say door and window hosts are not read.
  • RE-81 report update note, README, supported profile, support matrix notes, CHANGELOG.

Testing

tools/re/opening_hosts_vs_ifc.py and tools/re/openings_vs_ifc.py against Revit's own IFC4 exports (local only, _corpus_candidates/oracles/ribeiro):

file doors and windows in the wall Revit fills openings within 0.01 ft of Revit's within 0.26 ft within 1 ft
Exemplo_data (2023) 19 of 19 5 14 18
modelo_bim (2023) 11 of 11 10 11 11

Einhoven (2023, no Revit export): its 2 windows now fill openings; validate-real-ifc.py passes on it.

  • fmt, clippy -D warnings, rustdoc -D warnings
  • tools/ci/verify-real-files.sh --profile ci with both corpora: pass
  • cargo +1.85.0 check --profile ci --all-targets; fuzz workspace check
  • No unit tests added (banned in this repository).

Audit-honesty checklist

  • Two 2023 files of one author; other 2023 files may differ. Names, types, storeys, joins and design options are still not read on 2023, and the export warning says so.
  • No emojis, private paths or PII.

Legal and contribution hygiene

  • Apache-2.0; byte observations and comparisons with Revit's exported IFC, no Autodesk code.

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, and bind_opening_hosts picks 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_hosts path runs in recover_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, and RE-85-opening-host-candidates.md.

Reviewed by Cursor Bugbot for commit b45c21265385af477b738b16c623ac695efa16fc. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 00:47
@cursor

cursor Bot commented Sep 28, 2026

Copy link
Copy Markdown

Bugbot couldn't run - usage limit reached

Bugbot 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
DrunkOnJava force-pushed the feat/2023-opening-hosts branch from b45c212 to 946608c Compare September 28, 2026 00:48
@DrunkOnJava
DrunkOnJava merged commit 4058e0e into main Sep 28, 2026
19 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/2023-opening-hosts branch September 28, 2026 00:51
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