Repository navigation
feat(elements): read Revit 2023 room solids for their outline (#90) (RE-102) - #474
Merged
Merged
Conversation
…RE-102) Revit 2023 writes ff ff ff ff between a room's ElementId and its solid's tag, and its faces are 170 bytes apart. All 9 of Exemplo_data's rooms now take Revit's own area and outline (6 before).
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 10:12
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_502c4bda-a856-48c7-92bb-7e9925037a6e) |
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 rooms take their outline too (RE-102). Revit 2023 stores a room's solid as 2024 and 2025 do (RE-101, #473), with two differences:
ffbytes sit between the room's ElementId and the solid's tag;The face fields sit at the same offsets. The same guard applies: the outline's extent must equal the room record's box within 0.001 ft.
Results
Exemplo_data(Revit 2023) against Revit's IFC4, 9 roomsplan_profiles_vs_ifc.py --match centroidpairs each room by top-surface centroid, and all 9 pair at 0.000 ft.Changes
solid_headers/solid_startaccept both header forms; 2023 is added to the supported releases.attach_room_outlines.--match centroid.Testing
Unit tests are banned in this repository; none were added.
fmt, clippy -D warnings, rustdoc -D warnings,
cargo +1.85.0 check.End to end against Revit's own Exemplo_data IFC4 (local only, no licence, sha256 in the report), as in the table.
Byte-identical to feat(elements): read each room's outline from its stored solid (#90) (RE-101) #473's output apart from the timestamp on every other local file:
So no witness observation changes.
Legal and contribution hygiene
Breaking changes
None.
Note
Medium Risk
Changes binary parsing and IFC geometry for Revit 2023 rooms only; scope is narrow and other fixtures are claimed byte-identical, but partition layout assumptions could mis-read solids on unmeasured 2023 files.
Overview
Revit 2023 rooms now export with real plan outlines (RE-102), extending RE-101’s partition solid parsing to the 2023 record layout. On 2023, the room ElementId is followed by four
0xffbytes before the same04 90 08 00solid tag; face records use the same field offsets but sit 170 bytes apart instead of 174.partition_room_boundariesaddssolid_start/solid_headersso discovery accepts both header shapes, andROOM_SOLID_SUPPORTED_REVIT_VERSIONSincludes 2023. The Revit 2023 recovery path inpartition_schema_mvpnow callsattach_room_outlinessoIfcSpacebodies use solid-derived outlines when they close on the record box (same 0.001 ft guard as 2024/2025).On Exemplo_data (9 rooms), area and outline agreement with Revit’s IFC4 export goes from 6/9 to 9/9; other local exports stay byte-identical apart from timestamps.
plan_profiles_vs_ifc.pygains--match centroidto pair spaces when rvt-rs does not emit Revit’s GlobalId (used for 2023 validation). Docs, changelog, support matrix, probe example, and RE-102 report are updated accordingly.Reviewed by Cursor Bugbot for commit 79dfa2b. Configure here.