Skip to content

Names for system-family types (walls, floors, roofs) from schema-serialised partition data #322

Closed

Description

@DrunkOnJava

RE-38 names family instances Family:Type:ElementId from the partition name entries (u64 id · u32 n · UTF-16 · i64 category). Those entries cover loadable families and their types only. System-family types keep the Class-ElementId name:

  • wall types, floor, roof and ceiling types;
  • stair and railing types;
  • curtain-wall types.

That is 1,060 walls and 200 slabs on Snowdon Towers, plus every wall and slab on Core Interior.

What is measured

On 2024_Core_Interior.rvt, the wall type 17328 ("8" Interior Partition 3 Hour" in Revit's export) stores its name once, as UTF-16 in Partitions/46 at 0x1e61982. That is past the record chain (RE-35) and inside schema-serialised object data:

-0x13c  ... ff ff ff ff d3 02 01 00 00 00      class tag 0x02d3 (?)
-0x12c  b0 43 00 00 00 00 00 00                u64 17328, the type
-0x0db  b1 43 00 00 ...                        u64 17329
...
-0x00c  00 10 ff ff ff ff 02 10                field tag 0x1002 (?)
-0x004  1c 00 00 00                            u32 28
+0x000  "8\" Interior Partition 3 Hour" UTF-16

Revit's Name for these walls is Basic Wall:8" Interior Partition 3 Hour:<id>. The family part ("Basic Wall") is the system family's name and still has to be located.

To do

  • Walk this data with the Formats/Latest schema (as walker.rs does for Global/Latest) to read the type's name field, not a fixed offset.
  • Find the system family name ("Basic Wall", "Floor", "Basic Roof", …) for the Family part.
  • Extend tests/element_names.rs to walls and slabs on Core Interior (360 walls, 100 slabs with Revit names in 2024_Core_Interior_slim.ifc).

Refs RE-38.

Activity

  1. DrunkOnJava commented on Sep 23, 2026

    @DrunkOnJava
    OwnerAuthor

    Measured 2026-09-23 on 2024_Core_Interior.rvt, against the 9 wall and floor ObjectTypes in 2024_Core_Interior_slim.ifc.

    The type part is stored, once, in one of two framings:

    types bytes before the UTF-16 name
    wall types (18" Basement, 6" Interior Partition, 6" Interior Partition 2 Hour, 8" Interior Partition 3 Hour) ff ff ff ff 00 10 ff ff ff ff 02 10 · u32 n
    floor and pad types (Arch Topping Slab - 2", Basement Slab, Floor 1, Structural Slab, Site Pad) 01 00 00 00 ff ff ff ff 51 01 · u32 n

    Each name occurs once in the partitions (6" Interior Partition twice). Every serialised element opens with ff ff ff ff d3 02 01 00 00 00 · u64 ElementId, the same header the design-option and phase name entries use (RE-40, #328). Taking the first length-prefixed UTF-16 string after that header finds 7 of the 9 type names. That is only a heuristic; a schema walk should replace it.

    The family part is not stored. "Basic Wall" does not occur anywhere in the file, in any stream. "Floor" and "Pad" occur only inside other strings. Revit writes the system family's name from the type's kind in its own UI language, so Basic Wall:… cannot be read from the bytes. For system families rvt-rs can therefore recover the type name (for a TypeName property or the IfcWallType name) but not Revit's full Family:Type:ElementId, unless the kind is decoded and the English names are accepted as a convention.

  2. DrunkOnJava commented on Sep 24, 2026

    @DrunkOnJava
    OwnerAuthor

    The railings that still carry no type name (measured 2026-09-24, after RE-63): 30 on Snowdon Towers and 1 on RE1 Architecture.

    • The type join works. Each of these railings names exactly one railing type record, for example 2150350 "Road Striping" (20 railings), 1991402 "Gate" and 1081543 "Balustrade_23 w Piers".
    • The name read fails.
      • On Snowdon, these types' data does not open with the element-data header (ff ff ff ff d3 02 01 00 00 00). The object is 00…00 01 00 00 00 · u64 id with class tag 0x0fdb at +0x47. The name is not framed with a field tag either: it follows an unset ElementId slot, as ff×8 · u32 n · UTF-16 · ff ff ff ff 0b 02.
      • On RE1 (2025), type 446543 ("-") has class tag 0x103c and yet another layout.

    The header-anchored name scan misses both. A rule anchored on the class tag and the unset-slot name would name Snowdon's 30. It is measured on one file only, so I left it unimplemented until a second file shows the same layout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions