Repository navigation
feat(elements): name Revit 2023 family instances by their family and type (#421) (RE-109) - #482
Merged
Merged
Conversation
…type (#421) (RE-109) A 2023 name entry is 01 00 00 00, a u32 id and a UTF-16 name, with no category after it. An instance's type is the one same-category type record its list names with a name; its family is the one named id its type's record references with no record of its own. Every door, window, column, beam and footing of the two 2023 projects with a Revit export carries Revit's Name and ObjectType: 19 of 19 and 31 of 31.
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 11:53
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_9e8c4c86-6965-4b80-a984-e92fa22ce9a6) |
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 family instances carry their family and type names (RE-109, #421).
u64 id · u32 n · UTF-16 · i64 category. On 2023 it is01 00 00 00 · u32 id · u32 n · UTF-16, with no category. The same shape also frames a loneU+FFFF, so only printable names are read, and an id with two different names gets neither.0xffff8000) of its own category with a name entry, wherever it sits. RE-26's rule (the last type slot before the own id) left 7 of Exemplo_data's elements unnamed: a type made after its instance has the larger id, and another type can sit between them.Results
tools/re/names_vs_ifc.py)System-family types (walls, floors, roofs) have no type record on 2023 and no entry of this form, so they stay unnamed. The export's 2023 warning says so.
Changes
name_entries_2023.type_and_family_names_2023, wired intorecover_2023_records.Testing
Unit tests are banned in this repository; none were added.
cargo +1.85.0 check, fuzz workspace check (--locked), andtools/ci/verify-real-files.sh --profile ciwith both corpora.Legal and contribution hygiene
Breaking changes
None.
Note
Low Risk
Scoped to Revit 2023 decode with fail-closed ambiguity handling; measured against Revit IFC exports and no change to 2024/2025 byte-identical outputs.
Overview
Revit 2023 family instances (doors, windows, columns, beams, footings) now get family and type names from partition bytes, matching Revit's IFC
NameandObjectTypeon the two measured 2023 projects (19/19 and 31/31).The decoder adds a 2023-specific name entry scan (
name_entries_2023:01 00 00 00 · u32 id · u32 n · UTF-16, printable-only, rejects duplicate names and loneU+FFFFframes).type_and_family_names_2023picks the type as the unique same-category symbol record in the element's reference list that has a name (any list position, fixing cases RE-26 missed), and the family as the unique named id referenced by that type with no element record. Resolved values are attached asTYPE_ID/TYPE_NAME/FAMILY_NAMEon 2023 recovered instances so the existing IFC path can emitFamily:Type:ElementIdnames.System-family walls, floors, and roofs stay unnamed on 2023. Export diagnostics and user-facing docs (README, status, support matrix, CHANGELOG) now claim RE-109; 2024/2025 outputs stay byte-identical aside from timestamps per the PR.
Reviewed by Cursor Bugbot for commit 7e8fbcf. Configure here.