Repository navigation
feat(elements): export Revit 2026 projects from their records, with storeys, rooms, doors, windows and layer sets (#421) (RE-124) - #510
Merged
Conversation
…toreys, rooms, doors, windows and layer sets (#421) (RE-124)
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_024200db-5cb5-4293-969b-a13e05767197) |
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
Admits Revit 2026 projects, as experimental, measured on one project: the flowbim.ee house (local only), against Revit 26.4's own IFC4X3 export. This clears the three blockers RE-124 (#508) listed: no storeys, unnamed rooms, and doors and windows as bare openings.
Every per-release constant is a class tag in the file's own schema. The 2026 values come from the house's schema:
Outline,ElementParentsPlaneCellListVerticalRegionsStructureMaterial,PatternHelper,PhysicalParamSetThe same holds on 2023, 2024 and 2025; the table is in the report. A 2026 layer record is 41 bytes, adding one
u32that repeats the function.RE-84 fix, affecting all releases. A door or window was exported as a bare opening when its type seemed to have no material map. Two cases produced that wrongly:
ff×8) entries was refused, and the house's manufacturer doors have them. Such a map now proves the type draws geometry, but its materials are not taken as the element's. Taking them gave 22 more right and 46 more wrong sets on Snowdon.Every 2023 to 2025 export is byte-identical: Core Interior, Snowdon Towers, the four RE1 models, Einhoven and the four 255ribeiro projects.
Measured against Revit's export
IfcDoor/IfcWindowin their host (all bare openings before)Family:Type:ElementIdas Revit'sOf the elements given materials, 4 carry one Revit doesn't: 3 windows Revit exports without materials, and 1 nested glass part (RE-82's known difference class).
Not read on 2026: wall join lists, roof slopes, stairs, beam axes, IFC export overrides.
The docs are updated: README row, support-matrix entry
element-records-revit-2026(experimental), supported profile, CHANGELOG, and the RE-124 addendum.Checks
Note
Medium Risk
Touches core partition parsing and door/window export logic across releases; backward compatibility is explicitly tested byte-for-byte on 2023–2025, but 2026 support is experimental and measured on one model.
Overview
Adds experimental Revit 2026 project export by extending partition decoders with 2026-specific markers and schema class tags (element records, Levels/
Plane,CellListelement data, 41-byte layer records, materials). Measured on one house vs Revit’s IFC: 113/115 elements with GlobalIds, storeys, named rooms, and hosted doors/windows.Fixes RE-84 door/window handling for all releases: types are no longer treated as “no material map” when material names are missing (fail closed) or when maps contain unset (
0xff) entries—partial maps still imply the type draws geometry without assigning those materials to the element. 2023–2025 exports stay byte-identical.Docs (
README, support matrix, CHANGELOG, RE-124 report) now list 2026 as experimental and document limits (no wall joins, roof slopes, stairs, IFC overrides on 2026).Reviewed by Cursor Bugbot for commit 6a46a91. Configure here.