Skip to content

A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840

Closed

Description

@DrunkOnJava

Found by HWT-25's report (#1829) on a confidential Revit 2027 structural model (CHL), read with 0.18.0.

What happens. A multi-layer floor is exported with its parts. Between two consecutive saves of the model, all 40 parts kept their names (...:<ElementId>:4, :5, :11), but none kept its GlobalId. Tools that track elements across versions (clash status, BCF) then see every part removed and a new one added on every save.

Where a part's GlobalId comes from. It is either:

  • Revit's own, rebuilt from the element's UniqueId (RE-48, model.global_ids.elements), or
  • one rvt-rs derives with stable_guid: the document's Unique Document GUID from BasicFileInfo, the element's Tag (ElementId), and which of the entities sharing that Tag it is (Synthetic GlobalIds shift whenever earlier geometry changes #400).

Each source can change between saves:

  • Revit's own. If Revit regenerates its parts on save with new UniqueIds, the rebuilt GlobalId changes. Revit's own export would then change too, and rvt-rs would be right to follow it.
  • Derived. The derived one changes only when the document GUID, the Tag or the order of the pieces changes.

To separate them, for both saves:

  • the Unique Document GUID (rvt-info --json);
  • for one floor, each part's Tag and GlobalId;
  • if available, whether Revit's export of each save keeps the parts' GlobalIds.

Done when the source is known. If it is the derived GlobalId, it holds across saves. If it is Revit's own and Revit's export changes too, that is stated in the docs on GlobalIds.

Activity

  1. added
    area:ifc
    type:bug
    on Nov 12, 2026
  2. DrunkOnJava commented on Nov 12, 2026

    @DrunkOnJava
    OwnerAuthor

    Source found: the derived GlobalId. HWT-25's data on #1829 settles it:

    • the two saves have different Unique Document GUIDs (ff4a120b-… and 8add98bc-…);
    • floor 499263's 11 further pieces keep their Tag and their place on both saves, yet every GlobalId changes;
    • the host floor, whose GlobalId is Revit's own, keeps 1GIEblKKb9aOPHLDpftUL6 on both.

    element_global_ids (src/ifc/step_writer.rs) derives a further piece's GlobalId from the document GUID, the Tag and the piece's place. The fix is to derive it from the host's Revit GlobalId wherever the host has one. That id holds across saves and is unique to the document, so two documents still never share a piece's GlobalId. Where the host has none, the document-derived one stays. This moves every further piece's GlobalId once, in every file that has them, so it is measured unfiltered first.

    A second question for after the fix: Revit's IFC4 export of CHL writes this floor whole, as one IfcSlab with no parts, where rvt-rs writes its parts. Which of Revit's settings decides that, and whether rvt-rs should follow it, is not yet known.

  3. added 3 commits that reference this issue on Nov 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:ifctype:bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions