Skip to content

feat(elements): give Revit 2023 walls, floors and roofs their type (#421) (RE-111) - #484

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

DrunkOnJava merged 1 commit into
mainfrom
feat/system-types-2023

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

Summary

Revit 2023 walls, floors and roofs now carry their type. A 2023 system-family type has no record and no name entry (RE-109), but its element data names it as 2024's does (#322). The only difference is the header: ff ff ff ff c0 02 01 00 00 00 followed by a u32 ElementId.

An element's type is chosen from the ids its record names that have a name there and neither a record nor a name entry: it is the one named by records of a strict subset of the categories that name each of the others. If no such id exists, the element gets no type.

Exemplo_data modelo_bim
elements Revit types, with Revit's type name as TypeName 37 of 37 (was 19) 37 of 37 (was 31)
typed by an IFC type object with Revit's Tag 20 (was 19) 32 (was 31)
  • Floors: they take RE-63's system family Floor, so each is typed by an IfcSlabType with Revit's Tag and GlobalId.
  • Walls and roofs: their system family follows from whether their type has layers, which 2023 does not read, so they keep their category's name and no type object.
  • Other releases: every 2024 and 2025 file is byte-identical (Core Interior, Snowdon Towers, RE1, Projeto1, teste_export_2025).
  • Reader fix: the element-data name reader now skips a frame that is another element's data header, which it read as a one-character name. A general length-1 skip is not possible, because RE1's types are named -.

Changes

  • partition_names: ELEMENT_DATA_HEADER_2023 and find_element_data_names_2023. find_element_data_names shares its body with the new function, and the framed-name scan skips data headers.
  • partition_schema_mvp::system_type_names_2023, wired into recover_2023_records. The 2023 path now runs RE-63's system-family step.
  • examples/probe_re111_system_types_2023.rs prints each 2023 wall's, floor's and roof's candidates, with the categories naming them.
  • tools/re/type_objects_vs_ifc.py also scores the TypeName property.
  • Report reports/element-framing/RE-111-system-types-2023.md. Also updated: README, status, the support matrix, CHANGELOG, the 2023 export warning and the 2023 module doc.

Verification

  • tools/ci/ifc_schema_arity.py passes on both 2023 exports.
  • Core Interior's IFC is unchanged, so its 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
Adds new binary parsing and type-resolution heuristics on the Revit 2023 export path, but changes are scoped to 2023 recovery and validated against Revit IFC oracles without altering 2024/2025 output.

Overview
Revit 2023 walls, floors, and roofs now get type names (and related IFC typing where applicable) from partition element data, closing the gap left after RE-109/RE-110.

The decoder reads system-family type names from 2023 element-data blocks (ELEMENT_DATA_HEADER_2023 / find_element_data_names_2023), with framed-string parsing updated so a nested element-data header is not mistaken for a one-character type name. For each exported wall, floor, roof, or ceiling, system_type_names_2023 picks the referenced id whose naming categories are a strict subset of every other named candidate’s; that id and name are attached in recover_2023_records, and the 2023 path also runs attach_system_family_names so floors can become IfcSlabType where RE-63 applies. Walls and roofs still lack IFC type objects on 2023 because layer-based system families are not decoded there.

Docs, changelog, support matrix, export warnings, probe probe_re111_system_types_2023, and type_objects_vs_ifc.py (TypeName scoring) are updated; 2024/2025 exports stay byte-identical on measured models.

Reviewed by Cursor Bugbot for commit c9ef6cc. Configure here.

@DrunkOnJava
DrunkOnJava enabled auto-merge (squash) September 28, 2026 12:24
@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_bec7a554-e157-4840-8c36-c86109a1d0f3)

@DrunkOnJava
DrunkOnJava merged commit bc8fe99 into main Sep 28, 2026
20 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/system-types-2023 branch September 28, 2026 12:26
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