Skip to content

feat(elements): read Revit 2023 room solids for their outline (#90) (RE-102) - #474

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/room-solids-2023
Sep 28, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/room-solids-2023

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

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:

  • four ff bytes sit between the room's ElementId and the solid's tag;
  • its faces are 170 bytes apart where 2024's are 174.
u64 room id · ff ff ff ff · 04 90 08 00 · …

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 rooms main this PR
area within 0.1% 6 9
outline within 0.01 ft 6 9
  • The three rooms that change (349975, 349984, 350436) are not rectangles. Main's 6 of 9 are the six rectangular rooms.
  • Pairing: Revit 2023 rooms don't carry Revit's GlobalId in rvt-rs's export. plan_profiles_vs_ifc.py --match centroid pairs each room by top-surface centroid, and all 9 pair at 0.000 ft.

Changes

  • src/partition_room_boundaries.rs: solid_headers / solid_start accept both header forms; 2023 is added to the supported releases.
  • src/partition_schema_mvp.rs: the 2023 path calls attach_room_outlines.
  • examples/probe_re101_room_solids.rs runs the full recovery, so it sees 2023 rooms.
  • tools/re/plan_profiles_vs_ifc.py: --match centroid.
  • reports/element-framing/RE-102-room-solids-2023.md, README, supported profile, support matrix, CHANGELOG.

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:

    • Core Interior, the four RE1 models;
    • Snowdon Towers architectural and structural;
    • Einhoven, modelo_bim, Projeto1, teste_export_2025;
    • the MIT house (2024, 2025).

    So no witness observation changes.

Legal and contribution hygiene

  • Apache-2.0. Byte observations and comparisons with Revit's exported IFC; no Autodesk code.

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 0xff bytes before the same 04 90 08 00 solid tag; face records use the same field offsets but sit 170 bytes apart instead of 174.

partition_room_boundaries adds solid_start / solid_headers so discovery accepts both header shapes, and ROOM_SOLID_SUPPORTED_REVIT_VERSIONS includes 2023. The Revit 2023 recovery path in partition_schema_mvp now calls attach_room_outlines so IfcSpace bodies 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.py gains --match centroid to 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.

…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
DrunkOnJava enabled auto-merge (squash) September 28, 2026 10:12
@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_502c4bda-a856-48c7-92bb-7e9925037a6e)

@DrunkOnJava
DrunkOnJava merged commit e57edcd into main Sep 28, 2026
20 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/room-solids-2023 branch September 28, 2026 10:15
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