Skip to content

feat(elements): read Revit 2023 host types' layers and type their walls and roofs (#421) (RE-112) - #485

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/layers-2023
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/layers-2023

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

A Revit 2023 wall, floor or roof type keeps its layers in its element data, much as 2024's does. The count follows the type's name, and on a wall type it is framed by ff ff ff ff 6f 10. The records are 29 bytes: an f64 width, a u32 function, then u32 material and deck-profile ids. 2024's records are 37 bytes with u64 ids.

All five host types of the two 2023 projects read Revit's own layers:

type read
400 (wall) 0.14 m of concrete masonry
113426 (floor) 0.21 m of cast-in-place concrete, then a 0.0 m metal deck
the others the category's material at 0.2 m, 0.15 m and 0.4 m

Material names come from each material's element data. They equal Revit's layer set names.

With the layers read, RE-63 names the walls Basic Walls and the roof a Basic Roof. Every element that Revit's export types is now typed on both 2023 projects, with Revit's type Tag:

  • Exemplo_data: 37 of 37 (RE-111: 20);
  • modelo_bim: 37 of 37 (RE-111: 32).

The walls, floors and roofs also carry Revit's type GlobalId. The name differences are only the system family's language (Parede básica).

Also changed: a structural deck layer may now have no width, as a membrane may. Revit writes this deck layer at 0.0 m.

Every 2024 and 2025 file is byte-identical: Core Interior, Snowdon Towers, RE1, Projeto1 and teste_export_2025.

2023 layers are not yet written as material layer sets, and the export warning says so.

Changes

  • partition_compound_structure:
    • LayerLayout and layer_layout give each release its record layout.
    • The 2023 frame tag is 0x106f.
    • scan_type_layers reads 2023 types by the 2023 data header and a u32 id.
    • A zero-width structural deck is accepted.
  • partition_schema_mvp::attach_system_family_names runs on 2023. There, a layer's material only has to be declared, since 2023 has no material records.
  • examples/probe_re112_layers_2023.rs prints each 2023 host type's layers and materials.
  • Report reports/element-framing/RE-112-layers-2023.md. Also updated: README, status, the support matrix, CHANGELOG, the 2023 export warning and the 2023 module doc.

Verification

  • tools/re/type_objects_vs_ifc.py on both 2023 exports, against Revit's.
  • tools/ci/ifc_schema_arity.py passes on both 2023 exports.
  • Byte-identity checked on the five 2024 and 2025 files. Core's witness observations are unchanged.
  • fmt, clippy, rustdoc, MSRV 1.85, the fuzz check and tools/ci/verify-real-files.sh --profile ci all pass.

Note

Medium Risk
Changes partition binary decoding and 2023 IFC type-object coverage, but scoped to 2023 with regression checks that 2024/2025 exports are unchanged.

Overview
RE-112 adds decoding of compound-structure layers on Revit 2023 wall, floor, and roof types (29-byte records, u32 material/deck ids, wall frame tag 0x106f), via a new LayerLayout / layer_layout path in partition_compound_structure and extended scan_type_layers (2023 element-data header and type ids).

Those layers are used to infer system families (e.g. Basic Wall / Basic Roof) so all measured 2023 exports type every Revit-typed element (37/37 on both test projects), with docs, support matrix, changelog, and the 2023 IFC export warning updated accordingly. 2023 layers are not emitted as IfcMaterialLayerSet yet—only read for typing/naming.

Validation also allows zero-width structural deck layers (like membranes). 2024/2025 outputs stay byte-identical; a new probe_re112_layers_2023 example and RE-112 report document the format.

Reviewed by Cursor Bugbot for commit 40fe10a. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 12:35
@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_0dacdb2d-5482-4ab7-ae2c-0db7614c8909)

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