Skip to content

docs(re): Revit 2026 element records keep the 2024/2025 frame under the schema's marker (#421) (RE-124) - #508

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

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

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

This is the first measurement of a Revit 2026 project against Revit's own export. The file is the public flowbim.ee single-dwelling house (STE1200's pointer in Discussion #112; local only, no licence stated), with Revit's own IFC4X3 export (Revit 26.4).

  • Marker: 61 01 ff ff ff ff f1 05, from the file's own schema (feat(partitions): confirm the element-record marker from the file's own schema (#421) #506). The tail is the 0x05f1 RE-32 predicted; the ElementHeader tag is 0x5e5.
  • Instance rule: the 2024/2025 decode with the RE-21 rule gives 88 placed instances. All 88 are in Revit's export, and every category lands on Revit's class. The 27 missed are chain-attributed frames.
  • Trial admission (not in this PR): the record chain recovers all 59 walls and 8 slabs, 85 elements with no false positive. Admission is held back by three measured problems:
    • doors and windows come out as bare openings with no host;
    • the storeys are not the model's;
    • rooms are unnamed.

This PR adds only the probe, the scorer (tools/re/instances_vs_ifc_tags.py), the report reports/element-framing/RE-124-revit-2026-element-records.md, a reference-models update and a CHANGELOG research note. The release gate is unchanged.

Checks

Clippy on the probe (-D warnings) and MSRV 1.85 pass. No library code changes.


Note

Low Risk
Documentation and measurement tooling only; no production decode or export paths change.

Overview
Documents the first measured Revit 2026 element-record behaviour on the public flowbim.ee house (RE-124, #421). No exporter or library changes — the release gate for 2026 stays as-is.

Adds examples/probe_re124_revit_2026_records.rs, which scans partitions with the schema-derived bbox marker and the existing RE-21 placed-instance rule, and tools/re/instances_vs_ifc_tags.py, which scores those ElementIds against numeric Tags in Revit's IFC export. The new report reports/element-framing/RE-124-revit-2026-element-records.md records that the predicted marker matches the file schema, the 2024/2025 frame decodes, and 88 placed instances all appear in Revit's export (with 27 export elements missed on the first-prologue-only path). It also lists why 2026 is not admitted yet: doors/windows as bare openings, wrong storeys, and unnamed rooms.

CHANGELOG gains a Research note; docs/reference-models.md marks the 2026 candidate as measured locally.

Reviewed by Cursor Bugbot for commit f471bed. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 18:32
@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_c8fb8e43-1090-4967-84c3-c7b0e58b4233)

@DrunkOnJava
DrunkOnJava merged commit d0525eb into main Sep 28, 2026
19 checks passed
@DrunkOnJava
DrunkOnJava deleted the research/revit-2026-records branch September 28, 2026 18:36
DrunkOnJava added a commit that referenced this pull request Sep 28, 2026
…toreys, rooms, doors, windows and layer sets (#421) (RE-124) (#510)

## 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.

<!-- CURSOR_SUMMARY -->
---

> [!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).
> 
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
6a46a91. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
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