Repository navigation
feat(elements): give Revit 2023 walls, floors and roofs their type (#421) (RE-111) - #484
Merged
Merged
Conversation
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 12:24
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_bec7a554-e157-4840-8c36-c86109a1d0f3) |
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
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 00followed by au32ElementId.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.
TypeNameTagFloor, so each is typed by anIfcSlabTypewith Revit's Tag and GlobalId.-.Changes
partition_names:ELEMENT_DATA_HEADER_2023andfind_element_data_names_2023.find_element_data_namesshares its body with the new function, and the framed-name scan skips data headers.partition_schema_mvp::system_type_names_2023, wired intorecover_2023_records. The 2023 path now runs RE-63's system-family step.examples/probe_re111_system_types_2023.rsprints each 2023 wall's, floor's and roof's candidates, with the categories naming them.tools/re/type_objects_vs_ifc.pyalso scores theTypeNameproperty.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.pypasses on both 2023 exports.tools/ci/verify-real-files.sh --profile ciall 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_2023picks the referenced id whose naming categories are a strict subset of every other named candidate’s; that id and name are attached inrecover_2023_records, and the 2023 path also runsattach_system_family_namesso floors can becomeIfcSlabTypewhere 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, andtype_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.