Skip to content

feat(ifc): name each material layer set Family:Type as Revit does (RE-61) - #372

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/family-type-names
Sep 24, 2026
Merged

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

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Each material layer set is now named Family:Type, as Revit names it: "Basic Wall:Exterior - Brick on Mtl. Stud" instead of "Exterior - Brick on Mtl. Stud" (RE-61).

Revit stores no system family name: "Basic Wall" and "Compound Ceiling" appear nowhere in RE1 Architecture's bytes. Only one system family per category has compound layers, so a layered type's category gives its family:

category family not
Wall Basic Wall Curtain Wall, Stacked Wall
Floor Floor
Ceiling Compound Ceiling Basic Ceiling
Roof Basic Roof Sloped Glazing
Building pad Pad

The family is set only where the element's type layers are read.

Measured against Revit's own IFC exports (tools/re/layer_sets_vs_ifc.py now reports it):

file set name = the Family:Type of Revit's element name sets
Snowdon Towers (local only) 1,210 of 1,210 62 of 62
2024_Core_Interior 88 of 88 4 of 4
RE1 Architecture 15 of 15 4 of 4

RE1's 2025 export writes its own layer sets, and their four names are rvt-rs's exactly.

Changes

  • src/partition_schema_mvp.rs: layered_system_family.
  • src/ifc/mod.rs: ElementLayers::system_family (serde default), and the set name.
  • src/ifc/export_content.rs: sets the family from the element's class.
  • tools/re/layer_sets_vs_ifc.py:
    • compares set names;
    • leaves openings out when matching by Tag, since Revit gives an opening the Tag of the element that cuts it.
  • reports/element-framing/RE-61-system-family-names.md, the support-matrix row, status, contribution-map, CHANGELOG.

Testing

End to end, against real files. No tests were added.

  • rvt-ifc on Snowdon, Core Interior and RE1, then tools/re/layer_sets_vs_ifc.py (the table above).
  • The Core witness observations are unchanged: they count entities, and none is added or removed.
  • Local gates:
    • fmt, clippy -D warnings, rustdoc -D warnings;
    • the workspace suite;
    • the corpus tests under --profile ci;
    • cargo +1.85.0 check and the fuzz workspace check.

What this does not do

  • Elements are still named Class-ElementId where Revit writes Family:Type:ElementId.
  • A type without read layers keeps its plain type name.

Audit-honesty checklist

  • Every count is measured against Revit's own export of the same model.
  • RE finding: report and scorer.
  • No emojis, private paths or personal data.

Legal and contribution hygiene

  • Apache-2.0
  • Clean-room: Revit's own exports as oracles; no Autodesk material.
  • Snowdon stays local.

Breaking changes

ElementLayers gains system_family (serde default).

Related issues

Refs #88, #355.


Note

Low Risk
Naming and validation changes on IFC layer sets and a serde-default field on ElementLayers; no auth, placement, or geometry logic changes.

Overview
IFC material layer set names now match Revit's Family:Type pattern (e.g. Basic Wall:Exterior - Brick on Mtl. Stud) instead of the type name alone.

Revit does not store the system family string in the file, so layered_system_family maps each layered element's class (Wall, Floor, Ceiling, Roof, BuildingPad) to the one system family Revit uses for compound layers. That value is stored on ElementLayers::system_family when layers are attached during export, and material_layer_sets_from_layers prefixes it when building IfcMaterialLayerSet names. Types without read layers keep the plain type name.

tools/re/layer_sets_vs_ifc.py now scores set names against Revit's element Family:Type and skips IfcOpeningElement when matching by Tag (openings inherit the cutter's tag). Changelog, status, contribution map, support matrix, and RE-61 report document measured parity on Snowdon, Core Interior, and RE1.

Reviewed by Cursor Bugbot for commit e6b6611. Configure here.

…-61)

Revit stores no system family name, and only one system family per
category has compound layers. So a layered type is a Basic Wall, Floor,
Compound Ceiling, Basic Roof or Pad by its category. The layer set is now
"Basic Wall:Exterior - Brick on Mtl. Stud" rather than the type name
alone.

The names equal the Family:Type of Revit's element names on 1,210 of
1,210 Snowdon elements, 88 of 88 on Core Interior and 15 of 15 on RE1,
whose own four layer sets carry the same names.
@cursor

cursor Bot commented Sep 24, 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_fc118b60-fe69-4476-b83c-330130d8f22b)

@DrunkOnJava
DrunkOnJava merged commit a0fcf66 into main Sep 24, 2026
23 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/family-type-names branch September 24, 2026 04:40
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