Repository navigation
feat(ifc): type every element named Family:Type by an IFC type object of its Revit type (RE-110) - #483
Merged
Conversation
… of its Revit type (RE-110)
DrunkOnJava
enabled auto-merge (squash)
September 28, 2026 12:11
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_4dbf7cb3-99c1-44aa-aec9-fe68ef36f22d) |
3 tasks
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
rvt-rs now writes the IFC4 type layer Revit's own export writes. Every element that rvt-rs names
Family:Type, and whose Revit type it reads, is typed throughIfcRelDefinesByTypeby one type object per Revit type:IfcWallType,IfcDoorType,IfcColumnType, …);Family:Type;Tag= the type's ElementId;PredefinedType= the occurrence's;Before this PR no type object was written for any release.
Measured per
Tagagainst every element Revit's export types (tools/re/type_objects_vs_ifc.py):The remaining differences are measured and explained in
reports/element-framing/RE-110-type-objects.md:0x08of byte 10 flipped.Changes
export_content: records each element's type ElementId (TypedProductionAppend::element_type_ids).ifc::IfcModel::element_type_ids;RevitGlobalIds::typesgives each type its Revit GlobalId.step_writer:type_entity_formaps an occurrence to its IFC4 type entity with every declared attribute.IfcRelDefinesByTypeper (type, entity).rvt-rs.jsonobservations are refreshed.ifc-type-objects, two stale "no IfcWallType is written" notes corrected), CHANGELOG;Verification
tools/ci/ifc_schema_arity.pypasses on every output: Core, Snowdon, RE1, the four ribeiro files.--witness-agreementpasses on Core.tools/ci/witness-verdict.pypasses both Core artifacts with all three replays matching.tools/ci/verify-real-files.sh --profile ciall pass.Note
Medium Risk
Changes IFC STEP output shape and entity counts for all typed exports; behavior is witness-tested on Core Interior but GlobalId and entity choices can still diverge from Revit’s split type objects.
Overview
RE-110 adds the missing IFC4 type layer: elements that already export as
Family:Type(withFamilyName/TypeName) now get oneIfcWallType,IfcDoorType,IfcColumnType, etc. per Revit type, linked viaIfcRelDefinesByType, with nameFamily:Type,Tag= type ElementId, sharedPredefinedType, and Revit-derived type GlobalIds where available.The pipeline records each instance’s type ElementId in
IfcModel::element_type_ids(from export content / walker), fillsRevitGlobalIds::types, andstep_writergroups by(type_id, IFC type entity)through newtype_entity_for. Openings, spaces, reinforcing bars, and railings stay untyped; types still have no property sets or representation maps.Docs, CHANGELOG, support matrix (
ifc-type-objects), Core Interior witness observations,tools/re/type_objects_vs_ifc.py, and RE-110 report are updated; 2025 element-record tests ignore*TYPEentities when checking Tag coverage.Reviewed by Cursor Bugbot for commit 9dd3550. Configure here.