Merge elements with same GUID or TAG
It's possible to merge elements with the same GUID or TAG?
I tried using Patch Merge Duplicate Types (https://blenderbim.org/docs-python/autoapi/ifcpatch/recipes/MergeDuplicateTypes/index.html) but when I open my ifc file in BIMcollab exists more than 1 element with the same TAG.
Comments
Do you have some example file? Your code should merge them fine, see the example below.
Here is an example. I zipped the file so I could upload it.
Some elements with the same GUID:
1E1yvzyVb0LAZDdant$cp5
1E1yvzyVb0LAZDdant$cp6
1E1yvzyVb0LAZDdant$cpH
1E1yvzyVb0LAZDdant$cpi
1E1yvzyVb0LAZDdant$cpj
1E1yvzyVb0LAZDdant$cpm
1E1yvzyVb0LAZDdant$cpn
1E1yvzyVb0LAZDdant$cpo
1E1yvzyVb0LAZDdant$cpp
1E1yvzyVb0LAZDdant$cpR
1E1yvzyVb0LAZDdant$cpz
These are all different GUIDs.
@brunopostle In each guid informed there are 4 elements...
1E1yvzyVb0LAZDdant$cp5 - There are 4 elements
1E1yvzyVb0LAZDdant$cp6 – There are 4 elements
.....
All those guids are not types but occurrences,
MergeDuplicateTypes
merges only types. Though it does merge types of those elements if they have matching guids - e.g. 3694759, 3480919, 2388844, 359263 (guid1E1yvzyVb0LAZDdant$cpj
) IfcWallStandardCases are pointing to different types with the same guid0utCMpdeTCJOHnXCC6IWFD
and all those types are merged by ifcpatch.