From 7890ded69846d2e43f450936dff6ce4832e7068c Mon Sep 17 00:00:00 2001 From: Dion Moult Date: Fri, 28 May 2021 09:49:57 +1000 Subject: [PATCH] Fix #1429. MVDs now reflect the full DesignTransferView by default. --- src/blenderbim/blenderbim/bim/export_ifc.py | 11 ----------- .../ifcopenshell/api/project/create_file.py | 1 + 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/src/blenderbim/blenderbim/bim/export_ifc.py b/src/blenderbim/blenderbim/bim/export_ifc.py index fd3c630f6e..dd1dd54d03 100644 --- a/src/blenderbim/blenderbim/bim/export_ifc.py +++ b/src/blenderbim/blenderbim/bim/export_ifc.py @@ -49,7 +49,6 @@ class IfcExporter: json.dump(jsonData, outfile, indent=None if self.ifc_export_settings.json_compact else 4) def set_header(self): - # TODO: add all metadata, pending bug #747 self.file.wrapped_data.header.file_name.name = os.path.basename(self.ifc_export_settings.output_file) self.file.wrapped_data.header.file_name.time_stamp = ( datetime.datetime.utcnow() @@ -62,16 +61,6 @@ class IfcExporter: self.file.wrapped_data.header.file_name.originating_system = "{} {}".format( self.get_application_name(), self.get_application_version() ) - # TODO: reimplement. See #1222. - # if self.owner_history: - # if self.schema_version == "IFC2X3": - # self.file.wrapped_data.header.file_name.authorization = self.owner_history.OwningUser.ThePerson.Id - # else: - # self.file.wrapped_data.header.file_name.authorization = ( - # self.owner_history.OwningUser.ThePerson.Identification - # ) - # else: - # self.file.wrapped_data.header.file_name.authorization = "Nobody" def sync_object_placements_and_deletions(self): self.unit_scale = ifcopenshell.util.unit.calculate_unit_scale(self.file) diff --git a/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py b/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py index 9e4fd31796..a353db9d51 100644 --- a/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py +++ b/src/ifcopenshell-python/ifcopenshell/api/project/create_file.py @@ -22,4 +22,5 @@ class Usecase: self.file.wrapped_data.header.file_name.preprocessor_version = "IfcOpenShell {}".format(ifcopenshell.version) self.file.wrapped_data.header.file_name.originating_system = "IfcOpenShell {}".format(ifcopenshell.version) self.file.wrapped_data.header.file_name.authorization = "Nobody" + self.file.wrapped_data.header.file_description.description = ('ViewDefinition[DesignTransferView]',) return self.file