revit-ifc icon indicating copy to clipboard operation
revit-ifc copied to clipboard

PR: Federated Export with wrong IfcGuids

Open denizmaral opened this issue 1 year ago • 3 comments

Problem Description

When I export a model with its link to same project or same IfcSite, IfcGuids are not correctly written in Ifc file. ExportIFCUtils give me actually correct guid but in the file it is something else...

grafik

WrongGuid.zip

Revit Version

2024.0.x

IFC for Revit Addon Version

24.x.x

Windows Version

11 22H2

denizmaral avatar Nov 20 '24 11:11 denizmaral

Hmm, this may be by design. The GUID of a wall in a linked file inside a host is different than the GUID of that wall exported separately. Why? Well, Revit allows you to link in a file multiple times - the copies can't all have the same GUID. Or is this not what you are stating?

AngelVelezSosa avatar Nov 20 '24 17:11 AngelVelezSosa

You are totally right. In that case I would love to see an overridden value, when I select a linked Element. Fyi: @andydandy74

denizmaral avatar Nov 20 '24 18:11 denizmaral

I think it should be like that: If I have only one instance of the link => take the Guid that is shown in UI If there are more than one instances => override Guids in UI and take those. It's not that common, that we have many instances of a link.

denizmaral avatar Nov 22 '24 09:11 denizmaral

There are two issues with the suggestions above.

  1. An overridden value with you select a linked Element: at the moment, there is no way to assign a value to one copy of a linked Element, so it would be overridden for all of them, without some very complicated UI.
  2. Use the GUID if there is only one link: that would work well in 90% of the cases, perhaps, but then: a. Add link: get the "right" GUIDs. b. Add a 2nd link: get "new" GUIDs. c. Remove the first link: what happens?

What do people think?

AngelVelezSosa avatar May 29 '25 12:05 AngelVelezSosa

Please close this issue. The problem is discussed in more detail in #880

andydandy74 avatar Jul 08 '25 19:07 andydandy74

Please see #880 .

AngelVelezSosa avatar Jul 08 '25 20:07 AngelVelezSosa