IfcMerge: merge error w/ IFCOWNERHISTORY
I'm trying to merge the added_roof_members
branch into main
and i got the following error.
repo: https://hub.openingdesign.com/OpeningDesign/Lake_Kegonsa_Renovation
Is this something that can be worked around?
IFC Merge failed:
entity #3228822 attribute [5] conflict!
merge of Open/Models/BlenderBIM/Lake_Kegonsa_Renovation.ifc failed
main:
#3228822=IFCOWNERHISTORY(#62226,#3228807,.READWRITE.,.MODIFIED.,1719155597,#62226,#3242208,1714410201);
added_roof_members:
#3228822=IFCOWNERHISTORY(#62226,#3228807,.READWRITE.,.MODIFIED.,1719093884,#62226,#3285618,1714410201);
Comments
Further breakdown...
I'm not 100% knowledgeable about IFCOWNERHISTORY, but it seems like the following should not have changed, if @chopinregis committed these changes--since the IfcPerson connected with that IFCOWNERHISTORY is me.

#62224=IFCPERSON($,'','[email protected]',$,$,$,$,$);
https://hub.openingdesign.com/OpeningDesign/Lake_Kegonsa_Renovation/commit/4b909e498eeacbfc616f815c83497f6a629f595a#diff-36df8b75432c34fcd0a5fbf0ef0f218457d9b25a
The BlenderBIM behaviour seems to be ok, the IfcOwnerHistory is updated with LastModifiedDate and LastModifyingApplication (though I would expect the LastModifyingUser to change too in this case). IfcOwnerHistory is kind-of useless, I've only ever tested with IFC4 files without IfcOwnerHistory so never saw this problem.
I think it would be safe for ifcmerge to simply clobber one or other attribute whenever there is a conflict in an IfcOwnerHistory. So I've pushed a change to ifcmerge that does this. I can't create an .exe today, will try and do this tomorrow.
This is awesome.. thanks Bruno.
@theoryshaw Updated ifcmerge.exe here: https://github.com/brunopostle/ifcmerge/releases/tag/2024-06-24