Repository navigation
Description
Follow-up to #204 / PR #210, which landed src/partition_element_records.rs — the Revit 2024 partition element-record header (u64 self ElementId, i64 BuiltInCategory at +0x12, fixed marker at +0x50, six f64 feet of model bbox at +0x58).
Measured on 2024_Core_Interior.rvt with the shipped decoder, against the ElementId set Revit's own full export tags:
| category | records | ids carrying the category | recall of exported ids | after the #204 instance filter | TP | FP | FN |
|---|---|---|---|---|---|---|---|
OST_Walls (-2000011) |
1488 | 1210 | 360 / 360 | 648 | 360 | 288 | 0 |
OST_Doors (-2000023) |
335 | 200 | 132 / 132 | 139 | 132 | 7 | 0 |
OST_Windows (-2000014) |
9 | 9 | 6 / 6 | 8 | 6 | 2 | 0 |
Category membership reaches every exported wall, door and window ElementId — the recall problem that #30 and #32 record is solved by this header. What is not solved is precision: the instance filter that is exact for columns (drop family-local bboxes, keep the highest ElementId per project-coordinate footprint origin) over-counts here. Walls are the worst case at 648 vs 360, which is expected — co-located wall segments are legitimately distinct elements, so footprint-origin de-duplication is the wrong rule for them.
This is a different mechanism from the RE-19 negative (no Door vs Window discriminator in the 2024 ArcWallRectOpening index bytes, no schema-field Wall envelope). RE-19 stands; nothing here re-opens it. The open question is narrower: given a set of ElementIds that provably carry a category, what distinguishes a live placed instance from a superseded generation, a type/symbol, or a group-definition member?
Leads worth measuring:
- The header flags word at
+0x08(0x00e1/0x0111/0x0131/0x0141/0x00d1/0x009fobserved). Bit0x100is set on all live columns and clear on 18 of the 137 non-exported ones — suggestive, not sufficient. - The
Global/ElemTable40-byte project record's threeu32words at+20/+24/+28. For columns,w28 ∉ {w20, 0xFFFFFFFF}separates the 256 live ones from the 137 others exactly — but the same rule keeps only 255 walls and 1 door, so it is either a coincidence or those words mean something narrower than "live". Their semantics are unknown; correlating them with partition membership was tried and is not a partition map. - Door/window records reference their host wall in the record body; a host-join filter may be the natural precision rule for openings.
Do not move walls / doors / windows off known_gap in tests/fixtures/project-counts/2024-core-interior-slim.json until a rule reproduces the exact counts at tolerance 0.
Activity
feat(elements): recover exact Wall/Door/Window/Column instance sets f…
feat(elements): bind every recovered door and window to its host wall…
feat(elements): recover all 15 Revit Level names and elevations from …
feat(elements): recover 256/256 IFCCOLUMN from Revit 2024 partition e…
feat(elements): recover exact Wall/Door/Window/Column instance sets f…
feat(elements): bind every recovered door and window to its host wall…
feat(elements): recover all 15 Revit Level names and elevations from …
feat(viewer): show the host wall of a selected door or window, and ju…
perf(ifc): inflate each partition stream once per export instead of a…
feat(elements): recover rooms from OST_Rooms element records, with na…