Skip to content

feat(elements): cut Revit 2023 walls back at their joins with 2024's solver (#421) (RE-120) - #494

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/wall-joins-2023
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/wall-joins-2023

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

A Revit 2023 wall's record box is the untrimmed wall, as on 2024. At an L or T joint it runs to the other wall's centreline, where Revit's export stops it at that wall's face.

A 2023 record's reference list names the walls it joins, as a 2024 record's does. So 2024's join solver (element_record_wall_joins::join_trims, RE-26 and RE-29) now runs on the 2023 wall records unchanged. No new threshold or rule is added.

Measured

Exemplo_data modelo_bim
Revit's wall box, before 2 of 17 4 of 4
Revit's wall box, after 17 of 17 4 of 4
  • In the GLB, scored by tools/re/wall_bodies_vs_ifc.py, Exemplo_data's wall ends go from 2 of 17 within 0.001 ft (worst 0.328 ft) to 17 of 17.
  • On Einhoven, which has no export to score against, 2 walls are trimmed.
  • Revit 2024 and 2025 are unchanged.
  • The full measurement is in reports/element-framing/RE-120-wall-joins-2023.md.

Checks

  • Local: fmt, clippy, doc, MSRV 1.85, fuzz check, integration tests, and the corpus run via verify-real-files.sh.

Clean-room declaration

This finding comes from public byte observations of the corpus files and Revit's own IFC exports only. No Autodesk SDK source, disassembly or NDA material was used.


Note

Medium Risk
Changes exported wall body geometry for Revit 2023 only, but reuses the existing join solver with a scoped code path and measured parity against Revit exports.

Overview
Revit 2023 wall geometry now matches Revit's export at L/T joints by reusing the existing 2024 join solver instead of emitting each wall's untrimmed record bounding box.

After recover_2023_records builds wall instances, the change gathers the underlying 2023 partition records, runs element_record_wall_joins::join_trims, and applies each trim via apply_wall_join_trim—the same path as 2024/2025, with no new thresholds or rules. The assumption is that 2023 reference lists name joined walls like 2024's do.

Measured on two 2023 projects with Revit IFC4 exports, wall boxes go from 2/17 and 4/4 matching Revit to 17/17 and 4/4; docs, changelog, support matrix, and reports/element-framing/RE-120-wall-joins-2023.md record the evidence. 2024 and 2025 exports are unchanged (logic lives only in the 2023 branch).

Reviewed by Cursor Bugbot for commit b914163a890695a696f03997e83419c5821166c6. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 14:38
@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_df00e5e4-2252-4af6-9eb9-4548a85660f8)

@DrunkOnJava
DrunkOnJava merged commit 1fdcbf4 into main Sep 28, 2026
18 of 19 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/wall-joins-2023 branch September 28, 2026 14:43
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