You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
A layered floor's parts take new GlobalIds on every save of a Revit 2027 model (#1829) #1840
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
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.
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.
Activity
DrunkOnJava commentedon Nov 12, 2026
Source found: the derived GlobalId. HWT-25's data on #1829 settles it:
Unique Document GUIDs (ff4a120b-…and8add98bc-…);1GIEblKKb9aOPHLDpftUL6on 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
IfcSlabwith 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.ci: bodies_across_saves holds each piece of a Tag to its own GlobalId…
docs(changelog): #1840's entry carries an upgrade note for clash and …
merge: the branch of #1850 (a072764: main at 9f43fe3 and #1840) into …
feat(cli): rvt-diff --elements compares two saves of a model element …
fix(ifc): openings, property sets, quantities and relationships take …
chore(release): prepare v0.21.0 (#1888)
fix(ifc): an element's further pieces take their GlobalIds from the e…
feat(ifc): a multistory stair is written once for each storey its gro…