Repository navigation
feat(ifc): name each material layer set Family:Type as Revit does (RE-61) - #372
Merged
Merged
Conversation
…-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.
Bugbot couldn't run - usage limit reachedBugbot 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
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.pynow reports it):Family:Typeof Revit's element nameRE1's 2025 export writes its own layer sets, and their four names are rvt-rs's exactly.
Changes
layered_system_family.ElementLayers::system_family(serde default), and the set name.Tag, since Revit gives an opening the Tag of the element that cuts it.Testing
End to end, against real files. No tests were added.
rvt-ifcon Snowdon, Core Interior and RE1, thentools/re/layer_sets_vs_ifc.py(the table above).--profile ci;cargo +1.85.0 checkand the fuzz workspace check.What this does not do
Class-ElementIdwhere Revit writesFamily:Type:ElementId.Audit-honesty checklist
Legal and contribution hygiene
Breaking changes
ElementLayersgainssystem_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:Typepattern (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_familymaps each layered element's class (Wall, Floor, Ceiling, Roof, BuildingPad) to the one system family Revit uses for compound layers. That value is stored onElementLayers::system_familywhen layers are attached during export, andmaterial_layer_sets_from_layersprefixes it when buildingIfcMaterialLayerSetnames. Types without read layers keep the plain type name.tools/re/layer_sets_vs_ifc.pynow scores set names against Revit's elementFamily:Typeand skipsIfcOpeningElementwhen matching byTag(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.