Repository navigation
feat(elements): run a wall through a butt join or stop it, from the walls' join lists (#358) (RE-70) - #386
Merged
Conversation
…alls' join lists (#358) (RE-70) A wall's element data lists the walls it runs through at a join (07 00 00 00, a per-document tag, 02 00 00 00, a zero u32 on Revit 2025, a count and u32 + u64 ElementId + u32 entries). Where two walls' centrelines end at one point, the wall naming the other reaches its far face and the named one stops at its near face. On Snowdon Towers the lists agree with every clean joint in Revit's IFC4 bodies: 194 perpendicular and 18 angled ends, 2 undecided, none contradicted. They also agree with the record box at 1,110 axis-parallel ends on five 2024 and 2025 files, with 2 contradictions, both irregular in Revit's body. The tag is read off the data, since it is in no schema class, no ElementId and no build: 0x0b9f7d on Snowdon, Core Interior and RE1, 0x039f3d on the MIT house. Bodies take these ends only between single-layer walls. Revit cleans layered joins layer by layer: 631 of 667 multi-layer ends are irregular, against 0 of 158 single-layer ends. On Snowdon 9 walls improve and none gets worse, and axis-parallel walls with both of Revit's ends go from 338 to 346. Core Interior, RE1 and the MIT house export unchanged. The IFC reports each such end as JoinReachStartFeet / JoinReachEndFeet.
DrunkOnJava
enabled auto-merge (squash)
September 24, 2026 09:26
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_a2a5b0e0-99f2-47e8-a312-02fe6ac86d0c) |
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
A wall's own element data lists the walls it runs through at a join (RE-70, #358). Where two walls' centrelines end at one point, Revit runs one on to the other's far face and stops the other at its near face. The wall that runs through names the other in its join lists and is not named back.
The lists never contradict a joint Revit draws cleanly:
Wall bodies take these ends where both walls have a single layer:
9 walls improve and none gets worse; no wall's faces move.
What was found
A wall's element data holds, usually twice:
0x0b9f7don Snowdon, Core Interior and RE1,0x039f3don the MIT tutorial house.Formats/Latestwithout it.Changes
wall_join_count_offset,wall_join_lists,scan_wall_join_partners.WallLine,butt_join_reaches.attach_wall_join_reaches,WALL_JOIN_REACH_FIELDS,WallAxis::join_reach_feet.wall_centreline_bodydraws a decided end there;JoinReachStartFeet/JoinReachEndFeetproperties.Testing
End to end, against real files. No tests were added.
rvt-gltfon Snowdon Towers against Revit's IFC4 bodies withtools/re/wall_bodies_vs_ifc.py, main and branch, wall by wall.tools/re/wall_join_lists_vs_ifc.pyon all five files reproduce every table in the report.rvt-ifcon Snowdon: 9.7 to 10.1 s on both builds.--profile ci,cargo +1.85.0 checkand the fuzz workspace check.What stays
Audit-honesty checklist
Legal and contribution hygiene
Related issues
Refs #358.
Note
Medium Risk
Changes wall body geometry and IFC properties for butt joins based on heuristic partition parsing; impact is narrowed to single-layer perpendicular L-joints with fail-closed rules, but incorrect join-list reads could still mis-trim walls.
Overview
RE-70 (#358) teaches rvt-rs to read which wall runs through a butt join from each wall’s partition join lists, then trims centreline wall bodies to match Revit for single-layer L-joints.
The decoder scans
07 00 00 00join-list frames in element data (scan_wall_join_partners/wall_join_lists, with a 2025 layout tweak), picks the per-document tag whose entries name only walls, andbutt_join_reachesdecides each end: exactly one perpendicular partner at the same centreline point, elevation overlap, and asymmetric naming (the wall that lists the other runs through by half the partner’s thickness; the named wall stops short). Those reaches attach asm_wall_join_*_reachonWallAxis.IFC / geometry extends
wall_centreline_bodyso decided ends lengthen or shorten the run along the centreline (axis-parallel and angled rectangles), and exportsJoinReachStartFeet/JoinReachEndFeetwhen set. Multi-layer joins, T-junctions, and ambiguous lists are left unchanged.Also adds
probe_re70_wall_join_lists,wall_join_lists_vs_ifc.py, the RE-70 report, and updates README / support matrix / status / CHANGELOG with measured Snowdon gains (e.g. more walls with both Revit ends).Reviewed by Cursor Bugbot for commit d07f540. Configure here.