You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Element record +0x46: the flag word's bits no Revit export has tested (RE-261) #223
area:elementsWork in the elements area.area:partitionsWork in the partitions area.priority:P2Important quality, usability, or hardening work.type:researchReverse engineering, discovery, or design investigation.
Status 2026-11-05. The title's question is answered: +0x4a is the schema class (RE-76), and bits of +0x46 are attributed in RE-128, RE-219 and RE-261. Left: the bits puzzbobb read that no Revit export of our models can test (RE-261), and whether their sweeps' FamilySymbols carry bit 7 (asked 2026-10-28).
From RE-21 (#221): the two u32 words at +0x46 and +0x4a of the Revit 2024 partition element record are still unattributed. Their values correlate with the element's class across the 23470 records on Core Interior — a likely join to the schema class table (rvt-schema). Establishing that join would let the element-record path label records by schema class directly instead of by BuiltInCategory alone, and is the natural bridge between the element-record work and the typed decoders. Evidence first: tabulate (value @+0x46, value @+0x4a) against the class name recovered elsewhere for the same ElementId; claim a join only if it is exact.
Measured 2026-09-27, following STE1200's and jakobhirn-bit's notes in Discussion #112: +0x4a is the element's class, as the running definition ordinal of the file's own Formats/Latest schema (first class = 12, each top-level or inline definition takes the next number). +0x46 is the flag word (their m_abFlags4Bytes); not re-measured here.
Core Interior (Revit 2024), every record carrying the 2024 bbox marker, +0x4a looked up in the page-stripped schema (#410; parsed with the grammar from their task13_schema_parser.py, 4,492 classes, tags 12 to 4,503, to the last byte):
category
records
class at +0x4a
OST_Floors
154
Floor 154
OST_Rooms
408
RoomElem 408
OST_Walls
1,489
SWall 1,488, DirectShapeType 1
OST_Doors
335
FamilyInstance 320, FamilySymbol 15
OST_Columns
480
FamilyInstance 463, FamilySymbol 17
OST_Windows
9
FamilyInstance 7, FamilySymbol 2
So the field gives class names without a per-class decoder and separates instances from type symbols directly. Using it in production needs the schema tags to come from the definition ordinal rather than the u16 after each class name, which is #154; the schema must also be read whole, which is #410.
changed the title [-]Element record fields +0x46 / +0x4a are unattributed; their values correlate with class (possible schema class-id join)[/-][+]Element record +0x46: the flag word is unread (+0x4a is the schema class, RE-76)[/+]on Sep 28, 2026
Retitled to what is left. +0x4a is settled and shipped: the element's class as the definition ordinal of the file's own schema, exported as RevitClass (#416, RE-76). +0x46 is still unread. STE1200's schema names it m_abFlags4Bytes (Discussion #112), and their vectors give 0x1929 on walls, 0x928 on doors and floors, and 0x1928 on a column. No bit of it is attributed yet, and nothing in rvt-rs reads it.
Measured 2026-09-28 on Core Interior and RE1 Architecture, on GitHub's runners (Measure run 36494666177, PR #518, RE-128). Reading +0x46 for all 14,580 and 98 records of the exported categories (re-reading +0x4a from the same bytes matches the decoded class on every one):
bit 7 (0x80): an element type. It is set on every record of the type classes (FamilySymbol and the curtain panel and mullion types) and on no instance; 123 and 11 records, none in Revit's export. Bit 21 occurs only with it.
bits 1, 6 and 15 set, bit 11 clear: a room (exactly the RoomElem records).
bit 0: a wall (exactly the SWall records).
bit 12 (0x1000): not attributed. It is set on 1,457 of 1,487 Core walls, 2 of 146 floors, 238 of 399 rooms and 5 of RE1's 8 walls, and it is not LoadBearing. Neither export writes Revit's own property sets (Room Bounding, Structural), so these oracles cannot test it. An export with Revit's property sets, or a model varying one parameter, would.
Leaving this open for bit 12 and the rest of the word.
Correction from the four RE1 models (same run): bit 0 is not wall-only. It is set on exactly the wall, pipe and duct records (RE1 Mechanical's 6 pipes and 25 ducts, Plumbing's 63 pipes), so it reads as an element drawn along a curve. Bit 12 is set on every MEP record in RE1 Mechanical and Plumbing. On RE1 Electrical, the records with bit 12 or bit 22 (0x400000) are exactly those in Revit's export, and those with neither are the nested switch and receptacle symbols RE-79 leaves out. Architecture exports family instances without bit 12, though, so it is not an export flag in general. RE-128's report is updated in #518.
area:elementsWork in the elements area.area:partitionsWork in the partitions area.priority:P2Important quality, usability, or hardening work.type:researchReverse engineering, discovery, or design investigation.
Activity
DrunkOnJava commentedon Sep 27, 2026
Measured 2026-09-27, following STE1200's and jakobhirn-bit's notes in Discussion #112: +0x4a is the element's class, as the running definition ordinal of the file's own Formats/Latest schema (first class = 12, each top-level or inline definition takes the next number). +0x46 is the flag word (their m_abFlags4Bytes); not re-measured here.
Core Interior (Revit 2024), every record carrying the 2024 bbox marker, +0x4a looked up in the page-stripped schema (#410; parsed with the grammar from their task13_schema_parser.py, 4,492 classes, tags 12 to 4,503, to the last byte):
So the field gives class names without a per-class decoder and separates instances from type symbols directly. Using it in production needs the schema tags to come from the definition ordinal rather than the u16 after each class name, which is #154; the schema must also be read whole, which is #410.
fix(formats): strip Formats/Latest's checksum pages and read the whol…
feat(elements): name every element's Revit class through the schema's…
feat(elements): name every element's Revit class through the schema's…
docs(partitions): the record marker and ElemTable header are class ta…
[-]Element record fields +0x46 / +0x4a are unattributed; their values correlate with class (possible schema class-id join)[/-][+]Element record +0x46: the flag word is unread (+0x4a is the schema class, RE-76)[/+]DrunkOnJava commentedon Sep 28, 2026
Retitled to what is left. +0x4a is settled and shipped: the element's class as the definition ordinal of the file's own schema, exported as
RevitClass(#416, RE-76). +0x46 is still unread. STE1200's schema names itm_abFlags4Bytes(Discussion #112), and their vectors give 0x1929 on walls, 0x928 on doors and floors, and 0x1928 on a column. No bit of it is attributed yet, and nothing in rvt-rs reads it.docs(elements): RE-128 report on the element record flag word (#223)
DrunkOnJava commentedon Sep 28, 2026
Measured 2026-09-28 on Core Interior and RE1 Architecture, on GitHub's runners (Measure run 36494666177, PR #518, RE-128). Reading
+0x46for all 14,580 and 98 records of the exported categories (re-reading+0x4afrom the same bytes matches the decoded class on every one):0x80): an element type. It is set on every record of the type classes (FamilySymbol and the curtain panel and mullion types) and on no instance; 123 and 11 records, none in Revit's export. Bit 21 occurs only with it.0x1000): not attributed. It is set on 1,457 of 1,487 Core walls, 2 of 146 floors, 238 of 399 rooms and 5 of RE1's 8 walls, and it is not LoadBearing. Neither export writes Revit's own property sets (Room Bounding, Structural), so these oracles cannot test it. An export with Revit's property sets, or a model varying one parameter, would.Leaving this open for bit 12 and the rest of the word.
DrunkOnJava commentedon Sep 28, 2026
Correction from the four RE1 models (same run): bit 0 is not wall-only. It is set on exactly the wall, pipe and duct records (RE1 Mechanical's 6 pipes and 25 ducts, Plumbing's 63 pipes), so it reads as an element drawn along a curve. Bit 12 is set on every MEP record in RE1 Mechanical and Plumbing. On RE1 Electrical, the records with bit 12 or bit 22 (
0x400000) are exactly those in Revit's export, and those with neither are the nested switch and receptacle symbols RE-79 leaves out. Architecture exports family instances without bit 12, though, so it is not an export flag in general. RE-128's report is updated in #518.research(elements): the element record flag word at +0x46, three bits…
52 remaining items