Repository navigation
feat(ifc): name inferred ElementIds in the element-record property set (RE-34) - #314
Merged
Merged
Conversation
…t (RE-34) An element whose Tag RE-34 inferred from its record's reference list and the frame order now carries ElementIdSource = 'reference_order' in RvtElementRecordGeometry, so an IFC consumer and the viewer's info panel can tell it from an id read off the record. Records that carry their id write nothing new, so Core Interior's export is unchanged.
DrunkOnJava
enabled auto-merge (squash)
September 23, 2026 02:54
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_a79b283f-dfeb-4698-a61a-62a2f1fe2e15) |
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
An element whose
TagRE-34 inferred from its record's reference list and the frame order now says so in the IFC:ElementIdSource = 'reference_order'in itsRvtElementRecordGeometryproperty set. The viewer's support-profile panel now describes what RE-34 leaves out.Motivation
#313 records the inference on the decoded element (field and provenance warning), but the IFC, which is what users take away, did not carry it. On Snowdon Towers Architectural that covers 4,142 exported elements. A consumer, and the viewer's element info panel, can now tell an inferred id from one read off the record. Records that carry their id write nothing new.
Changes
src/ifc/export_content.rs:ELEMENT_ID_SOURCE_PROPERTY/ELEMENT_ID_FROM_REFERENCE_ORDER, written when the decoded element hasm_id_from_reference_order, plus a unit test covering one inferred and one read id.viewer/index.html("Not ready"): records whose ElementId neither the record nor the record order gives, and elements Revit's export filters out (Snowdon: one record-backed slab (ElementId 2062318) is not in Revit's export #309), replace the old "records with no ElementId".Testing
tools/check-local.shElementIdSourceproperties;ifcopenshell.validatereports no issueBreaking changes
None.
Related issues
Refs #295, #309.
Note
Low Risk
Additive IFC metadata and viewer copy only; no change to id assignment logic or exports where ids are read from records.
Overview
RE-34 inferred ElementIds are now labeled in exported IFC. When an element’s
Tagwas assigned from reference-list / frame-order inference rather than read from the record, the exporter addsElementIdSource = 'reference_order'onRvtElementRecordGeometry. Records with a native id omit the property (Core Interior stays unchanged aside from header timestamps).New constants and export logic live in
export_content.rs, with a unit test covering one inferred and one read id. The viewer Supported profile “Not ready” copy is updated to describe ids that neither the record nor order resolve (e.g. second-layout floors) and elements Revit’s export omits but rvt-rs still exports. CHANGELOG documents the addition.Reviewed by Cursor Bugbot for commit 7528906. Configure here.