diff --git a/src/ifcblenderexport/blenderbim/export_ifc.py b/src/ifcblenderexport/blenderbim/export_ifc.py index 37542d9036..5298148730 100644 --- a/src/ifcblenderexport/blenderbim/export_ifc.py +++ b/src/ifcblenderexport/blenderbim/export_ifc.py @@ -753,8 +753,15 @@ class IfcParser(): for product in self.selected_products \ + self.type_products \ + self.selected_spatial_structure_elements: + self.prevent_data_name_duplicates(product) self.load_product_representations(product) + def prevent_data_name_duplicates(self, product): + if product['raw'].data \ + and bpy.data.meshes.get(product['raw'].data.name) \ + and bpy.data.curves.get(product['raw'].data.name): + product['raw'].data.name += '~' + def load_product_representations(self, product): obj = product['raw'] if obj.data and obj.data.name in self.representations: