Skip to content

feat(elements): name walls, floors, ceilings, roofs and railings with their system-family type (#322) (RE-44) - #341

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/system-type-names
Sep 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/system-type-names

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

Walls, floors, ceilings, roofs and railings now carry their type's name as TypeName, the same name Revit gives them. A system-family type has no RE-38 name entry. Its name is in its own serialised element data, and the element's type comes from the RE-28 type records. Both are now read on Revit 2024 and 2025.

Motivation

Closes #322. After RE-38, every family instance had Revit's Family:Type name, but walls, floors and other system-family elements had no type name at all. For the people using rvt-rs, a wall's type ("8" Interior Partition 3 Hour") is the first thing they look for.

Changes

  • src/partition_names.rs: element_data_header(release) (0x02d3 on 2024, 0x02ef on 2025) and find_element_data_names. The name is the first framed string after the header and the type id. A frame whose length is unset, a control character or a noncharacter is skipped, and an id whose copies disagree is dropped.
  • src/partition_type_records.rs:
    • Type records on Revit 2025, through decode_at_with_marker / find_type_records_with_marker: the marker is the last six bytes of the release's bbox marker, and the magic is record_prologue_constant.
    • Second-prologue type records take their partition record's id (RE-35).
  • src/partition_schema_mvp.rs: attach_system_type_names for walls, slabs and products that have no RE-38 names yet.
  • src/ifc/export_content.rs: TypeName is written whenever a type name is known. FamilyName is written only with a family.
  • examples/probe_re44_system_type_names.rs, reports/element-framing/RE-44-system-type-names.md, a reconnaissance addendum, a support-matrix row (element-record-system-type-names, partial), and updates to README, status and CHANGELOG.
  • research/witness/magnetar-2024-core-interior{,-slim}/observations/rvt-rs.json: regenerated for the 460 new IfcPropertySingleValue. Both verdicts still PASS.

Testing

  • tools/check-local.sh --corpus: fmt, clippy -D warnings, rustdoc -D warnings, workspace tests with both corpora.
  • cargo +1.85.0 check --profile ci --all-targets (MSRV) and cargo +nightly check --manifest-path fuzz/Cargo.toml: clean. The let-chain scan is empty.
  • New unit tests for the 2024 and 2025 byte patterns and for the release-derived marker and magic.
  • tests/element_names.rs:
    • core_interior_system_type_names_are_revits: 360 walls, 99 floors and the pad, each equal to Revit's ObjectType type half.
    • re1_system_type_names_are_revits: Revit 2025; 8 walls, 2 floors named - and --, 6 ceilings.
  • IFC exporter: tests/fixtures/synthetic-project.ifc is unchanged. The Core export differs from the released 0.2.0 rvt-ifc only by 460 IfcPropertySingleValue and their property sets. Otherwise only the owner-history timestamp and 14 positional relationship GlobalIds differ.

Measured against Revit's own exports (the type half of ObjectType, same Tag):

file release equal different
Core Interior 2024 460 0
Snowdon Towers Architectural (local only) 2024 1,545 0
RE1 Architecture 2025 16 0
Projeto1 (local only) 2025 1 0
teste_export_2025 (local only) 2025 6 1

The one difference is oracle drift, not a decoder miss. Wall 327589's frame reference list, its serialised data and its record bounding box all describe type 398 (200 mm). Its data is byte-identical to that of wall 327728, which Revit exports as 200 mm. Its box also differs from Revit's IFC geometry by 42 mm and 27 mm, while its neighbours match to 0.1 mm. So that export was made after the wall was changed to 300 mm. Report §5.

Audit-honesty checklist

  • README / status / support matrix say exactly this. TypeName only: the IFC Name stays Class-ElementId and no ObjectType, FamilyName or IfcWallType is written, because the family name ("Basic Wall", "Parede básica" in the Portuguese export) is not in the file.
  • Types with no element-data block stay unnamed (RE1's railing type, 7 of 22 Snowdon railing types). The report records them.
  • RE finding: probe, report and reconnaissance addendum included.
  • No emojis, private paths or personal data.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: public byte observations only. BuiltInCategory values are the public API constants already cited.
  • Tests read corpora through RVT_PROJECT_CORPUS_DIR; nothing is vendored.

Breaking changes

None against 0.2.0. partition_type_records::decode_second_prologue_at and partition_names::find_element_data_names are new in this PR. decode_at and find_type_records keep their 2024 signatures, and *_with_marker variants are added.

Related issues

Closes #322. Follow-ups found on the way (report §7):

  • Type-level IFC export overrides (IfcCoveringType / CLADDING on teste_export_2025).
  • Curtain walls exported as IfcWall.
  • Positional relationship GlobalIds.

Note

Medium Risk
Touches partition byte parsing, MVP element recovery, and IFC property emission on real 2024/2025 projects; impact is mitigated by fail-closed decoding and corpus-backed tests, but exported IFC property sets change for affected elements.

Overview
Walls, floors, ceilings, roofs, and railings now get their system-family type name on export (#322, RE-44). Names are parsed from each type’s serialized partition element data (release-specific header + first framed UTF-16 string), joined to instances via existing RE-28 type-definition records, and written as TypeName on the element property set. Loadable families still use RE-38; FamilyName is emitted only when a family exists—the UI system-family label (e.g. “Basic Wall”) is not stored in the file, so IFC Name / ObjectType stay unchanged and no IfcWallType entities are added.

Partition type-record decoding is extended to Revit 2025 (marker/prologue from the release bbox marker) and second-prologue type frames that inherit the enclosing partition record’s ElementId (RE-35). New probe probe_re44_system_type_names, CI checks in tests/element_names.rs, and docs/support-matrix/witness updates; Core Interior witness gains 460 IfcPropertySingleValue rows for the new properties.

Reviewed by Cursor Bugbot for commit f98e17f. Configure here.

… their system-family type (#322) (RE-44)

A system-family type has no RE-38 name entry, but its serialised element data opens with ff ff ff ff, a per-release u16 (0x02d3 on 2024, 0x02ef on 2025), 01 00 00 00 and the type's id, and the first framed string after that is its name. The element's type is the RE-28 type record its reference list names; type records are now read on Revit 2025 and as second-prologue frames. Every TypeName written equals Revit's on Core Interior (460), Snowdon Towers (1,545), RE1 Architecture (16) and Projeto1 (1); on teste_export_2025 six of seven, the seventh being a wall that export shows in a later state of the model.
@cursor

cursor Bot commented Sep 23, 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_6883d004-722b-498b-8af7-3bd31db3648e)

@DrunkOnJava
DrunkOnJava merged commit e6abb9c into main Sep 23, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/system-type-names branch September 23, 2026 10:26
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.

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

1 participant