Repository navigation
feat(elements): place curtain panels by the grid they lie on, and panels that hold a wall as curtain walls (#370) (RE-72) - #390
Merged
Conversation
…els that hold a wall as curtain walls (#370) (RE-72) A curtain panel names the curtain grid it lies on, an id with no element record whose own data holds its curtain wall as a u64 at +85 and again at +478. That wall is the one Revit's IFC4 export aggregates the panel under on all 18 panels that name such a grid and that Revit aggregates, including 16 that name several walls and the nested curtain wall RE-46 gave a wrong parent (1593696). attach_curtain_walls now tries the grid first, then RE-46's named wall and RE-62's box. Revit writes the 18 panels that hold a basic wall (RE-64) as IfcCurtainWall with their own body, nested under the curtain wall they are panels of. They now export as the class CurtainPanelWall, mapped to IFCCURTAINWALL with the body kept; the class is set last so the naming and layer steps still see panels. On Snowdon Towers every one of the 2,075 curtain parts Revit aggregates now has Revit's whole (16 had none, one another), all 60 curtain walls match Revit's bodiless or bodied ones, and 1593696 moves to Revit's storey. Core Interior, RE1, the MIT house and Einhoven export IFC byte-identical to main.
DrunkOnJava
enabled auto-merge (squash)
September 24, 2026 10:39
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_8fc6ad48-1413-487d-b706-9611f2ad624f) |
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
Two findings about curtain walls on Snowdon Towers (RE-72, #370).
u64at +85 and again at +478). That wall is Revit's whole on all 18 panels that name such a grid and that Revit aggregates. It settles the panels that name several walls, and the nested curtain wall RE-46 gave the wrong parent (1593696).IfcCurtainWallwith their own body, nested under the curtain wall they are panels of. rvt-rs wrote them asIfcPlate, and now writes them as Revit does.tools/re/aggregates_vs_ifc.pyPanel 1593696 now also sits on Revit's storey.
storeys_vs_ifc.py --any-copyshows one element on a different storey, not two. All 60 curtain walls carry Revit'sNameandObjectType.Changes
scan_curtain_grid_wallsandCURTAIN_GRID_WALL_OFFSETS.attach_curtain_wallstries the grid first, then RE-46's named wall, then RE-62's box. A wall a grid names becomes a curtain wall.attach_panel_wall_typesmarks panels that hold a wall (CURTAIN_PANEL_WALL_FIELD). The last recovery step gives themCURTAIN_PANEL_WALL_CLASS.CurtainPanelWallmaps toIFCCURTAINWALL, with the body kept.Testing
End to end. No tests were added.
rvt-ifcon Snowdon against Revit's IFC4 export:aggregates_vs_ifc.py,storeys_vs_ifc.py --any-copy,names_vs_ifc.py, plus a class and body check of all 60 of Revit's curtain walls.--profile ci,cargo +1.85.0 checkand the fuzz workspace check.What stays
47 panels Revit's export leaves out are still exported (#309): 24 empty system panels, and 23 that name a "Solar Wall Window Frame" type object. Railing 1646280 stays on another storey.
Audit-honesty checklist
Legal and contribution hygiene
Related issues
Refs #370, #309.
Note
Medium Risk
Changes partition-derived aggregation and IFC entity class for curtain parts; Snowdon-only IFC diffs are claimed but logic is heuristic (fixed byte offsets) and affects export structure.
Overview
RE-72 improves curtain-wall parentage and IFC typing so Snowdon Towers matches Revit's export for aggregates and nested panel walls.
Partition recovery now resolves a panel or mullion's curtain wall via the curtain grid: referenced ids without wall records are scanned in partition element data for a matching wall
u64at fixed offsets (CURTAIN_GRID_WALL_OFFSETS).attach_curtain_wallstries that grid link first, then the named wall (RE-46), then bounding-box containment (RE-62), and can promote walls named only from grids toCurtainWall.Curtain panels that infill a layered basic wall are flagged in
attach_panel_wall_typesand, at the end of MVP recovery, reclassified toCurtainPanelWall, whichcategory_mapmaps toIFCCURTAINWALLwith geometry—replacingIfcPlatefor those 18 Snowdon cases.Supporting additions:
probe_re72_curtain_panels,tools/re/aggregates_vs_ifc.py, RE-72 report, and README/CHANGELOG/support-matrix/status updates reflecting full aggregate parity on Snowdon.Reviewed by Cursor Bugbot for commit a9dd5e3. Configure here.