For BuildingParts with IfcType set to "Undefined" the ifctype for IFC export is set to IfcBuildingStorey https://github.com/FreeCAD/FreeCAD/blob ... 1696-L1697
but when creating the product the Attributes are still created with the FreeCAD object with IfcType Undefined this results in different kwargs for a real building storey and for the tweaked building storey.
Code: Select all
real IfcBuildingStorey
16:03:40 {'GlobalId': '3zYEt1WErDlxVgLzyyHODP', 'OwnerHistory': #5=IfcOwnerHistory(#3,#4,$,.ADDED.,1677164620,#3,#4,1677164620), 'Name': 'BuildingPart', 'Description': '', 'ObjectPlacement': None, 'Representation': None, 'CompositionType': 'COMPLEX', 'LongName': 'BuildingPart'}
BuildingPart set to Undefined and ifctype set to IfcBuildingStorey on export
16:02:54 {'GlobalId': '3zYEt1WErDlxVgLzyyHODP', 'OwnerHistory': #5=IfcOwnerHistory(#3,#4,$,.ADDED.,1677164574,#3,#4,1677164574), 'Name': 'BuildingPart', 'Description': '', 'ObjectPlacement': None, 'Representation': None, 'PredefinedType': 'COMPLEX'}
the different kwargs happen because the ifctype was changed but in method exportIfcAttributes() https://github.com/FreeCAD/FreeCAD/blob ... C.py#L1753 does not use the changed type but the original type instead which creates wrong attributes for the changed type.