From 9ab13a3e0cd45c10336cb87dd21a170efe8baeec Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Tue, 10 Sep 2019 20:11:58 +1000 Subject: [PATCH] Maintain GlobalIds for type products --- src/ifcblenderexport/export.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ifcblenderexport/export.py b/src/ifcblenderexport/export.py index 87add97371..e74debacbe 100644 --- a/src/ifcblenderexport/export.py +++ b/src/ifcblenderexport/export.py @@ -551,9 +551,9 @@ class IfcExporter(): def set_common_definitions(self): # Owner history doesn't actually work like this, but for now, it does :) self.origin = self.file.by_type('IfcAxis2Placement3D')[0] + self.owner_history = self.file.by_type('IfcOwnerHistory')[0] def create_units(self): - self.owner_history = self.file.by_type('IfcOwnerHistory')[0] for type, data in self.ifc_parser.units.items(): if data['is_metric']: type_prefix = '' @@ -660,7 +660,6 @@ class IfcExporter(): def create_type_products(self): for product in self.ifc_parser.type_products: placement = self.create_ifc_axis_2_placement_3d(product['location'], product['up_axis'], product['forward_axis']) - product['attributes'].update({ 'GlobalId': ifcopenshell.guid.new() }) if product['representation']: representation = self.ifc_parser.representations[product['representation']]['ifc']