Skip to content

feat(elements): export Revit 2026 projects from their records, with storeys, rooms, doors, windows and layer sets (#421) (RE-124) - #510

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/revit-2026-records
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/revit-2026-records

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

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:

constant class 2026
record marker Outline, ElementParents 0x0161, 0x05f1
Level elevations Plane 0x0265
element data CellList 0x02fd
layers VerticalRegionsStructure 0x1165
materials Material, PatternHelper, PhysicalParamSet 0x0a9c, 0x0164, 0x0cac

The same holds on 2023, 2024 and 2025; the table is in the report. A 2026 layer record is 41 bytes, adding one u32 that 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:

  • Unset entries. A map with unset (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.
  • No material names. A file whose material names aren't read made every type look map-less. Now it decides nothing.

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

result
elements 113 of 115, none outside it (missed: 1 window, 1 geographic element)
GlobalIds 113 of 113
storeys 4 of 4, Revit's names and elevations (none before)
rooms 13 of 13 with Revit's number and name (none before)
doors, windows 13 of 13 and 15 of 16 as IfcDoor/IfcWindow in their host (all bare openings before)
walls named Family:Type:ElementId as Revit's
layer sets 26 named and as thick as Revit's; most layer materials are unnamed (32 of 148 material objects)
wall bodies thickness 59 of 59, length 35 of 59, height 37 of 59 within 1 mm

Of 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

  • Local: fmt, clippy, doc, MSRV 1.85, fuzz check, integration tests, and the corpus run.
  • Byte-identity checked on the 11 files above.

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, CellList element 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.

…toreys, rooms, doors, windows and layer sets (#421) (RE-124)
@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_024200db-5cb5-4293-969b-a13e05767197)

@DrunkOnJava
DrunkOnJava merged commit 216ba4f into main Sep 28, 2026
21 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/revit-2026-records branch September 28, 2026 20:40
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