Repository navigation
feat(elements): read Revit 2023 host types' layers and type their walls and roofs (#421) (RE-112) - #485
Merged
Conversation
…ls and roofs (#421) (RE-112)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 12:35
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_0dacdb2d-5482-4ab7-ae2c-0db7614c8909) |
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
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: anf64width, au32function, thenu32material and deck-profile ids. 2024's records are 37 bytes withu64ids.All five host types of the two 2023 projects read Revit's own layers:
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: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:LayerLayoutandlayer_layoutgive each release its record layout.0x106f.scan_type_layersreads 2023 types by the 2023 data header and au32id.partition_schema_mvp::attach_system_family_namesruns on 2023. There, a layer's material only has to be declared, since 2023 has no material records.examples/probe_re112_layers_2023.rsprints each 2023 host type's layers and materials.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.pyon both 2023 exports, against Revit's.tools/ci/ifc_schema_arity.pypasses on both 2023 exports.tools/ci/verify-real-files.sh --profile ciall 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,
u32material/deck ids, wall frame tag0x106f), via a newLayerLayout/layer_layoutpath inpartition_compound_structureand extendedscan_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
IfcMaterialLayerSetyet—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_2023example and RE-112 report document the format.Reviewed by Cursor Bugbot for commit 40fe10a. Configure here.