Skip to content

feat(ifc): name inferred ElementIds in the element-record property set (RE-34) - #314

Merged
DrunkOnJava merged 1 commit into
mainfrom
feat/element-id-source-property
Sep 23, 2026
Merged

DrunkOnJava merged 1 commit into
mainfrom
feat/element-id-source-property

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

Summary

An element whose Tag RE-34 inferred from its record's reference list and the frame order now says so in the IFC: ElementIdSource = 'reference_order' in its RvtElementRecordGeometry property 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 has m_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".
  • CHANGELOG.

Testing

  • tools/check-local.sh
  • Snowdon Architectural export: 4,142 ElementIdSource properties; ifcopenshell.validate reports no issue
  • 2024_Core_Interior export byte-identical to main apart from the header timestamp

Breaking 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 Tag was assigned from reference-list / frame-order inference rather than read from the record, the exporter adds ElementIdSource = 'reference_order' on RvtElementRecordGeometry. 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.

…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
DrunkOnJava enabled auto-merge (squash) September 23, 2026 02:54
@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_a79b283f-dfeb-4698-a61a-62a2f1fe2e15)

@DrunkOnJava
DrunkOnJava merged commit a7c121f into main Sep 23, 2026
22 checks passed
@DrunkOnJava
DrunkOnJava deleted the feat/element-id-source-property branch September 23, 2026 02:56
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