WIP purge old export IFC. No going back! See #1222.

This commit is contained in:
Dion Moult
2021-01-23 18:29:59 +11:00
parent aa3a855b4c
commit 8b7d96893f
4 changed files with 49 additions and 3491 deletions
File diff suppressed because it is too large Load Diff
@@ -88,11 +88,9 @@ class ExportIFC(bpy.types.Operator):
else: else:
output_file = bpy.path.ensure_ext(self.filepath, ".ifc") output_file = bpy.path.ensure_ext(self.filepath, ".ifc")
ifc_export_settings = export_ifc.IfcExportSettings.factory(context, output_file, logger) ifc_export_settings = export_ifc.IfcExportSettings.factory(context, output_file, logger)
qto_calculator = None # TODO: remove from export ifc_exporter = export_ifc.IfcExporter(ifc_export_settings)
ifc_parser = export_ifc.IfcParser(ifc_export_settings, qto_calculator)
ifc_exporter = export_ifc.IfcExporter(ifc_export_settings, ifc_parser)
ifc_export_settings.logger.info("Starting export") ifc_export_settings.logger.info("Starting export")
ifc_exporter.export(context.selected_objects) ifc_exporter.export()
ifc_export_settings.logger.info("Export finished in {:.2f} seconds".format(time.time() - start)) ifc_export_settings.logger.info("Export finished in {:.2f} seconds".format(time.time() - start))
if not bpy.context.scene.DocProperties.ifc_files: if not bpy.context.scene.DocProperties.ifc_files:
new = bpy.context.scene.DocProperties.ifc_files.add() new = bpy.context.scene.DocProperties.ifc_files.add()
@@ -708,7 +708,6 @@ class BIMProperties(PropertyGroup):
) )
export_should_force_faceted_brep: BoolProperty(name="Export with Faceted Breps", default=False) export_should_force_faceted_brep: BoolProperty(name="Export with Faceted Breps", default=False)
export_should_force_triangulation: BoolProperty(name="Export with Triangulation", default=False) export_should_force_triangulation: BoolProperty(name="Export with Triangulation", default=False)
export_should_export_from_memory: BoolProperty(name="Export from Memory", default=True)
import_should_import_type_representations: BoolProperty(name="Import Type Representations", default=False) import_should_import_type_representations: BoolProperty(name="Import Type Representations", default=False)
import_should_import_curves: BoolProperty(name="Import Curves", default=False) import_should_import_curves: BoolProperty(name="Import Curves", default=False)
import_should_import_opening_elements: BoolProperty(name="Import Opening Elements", default=False) import_should_import_opening_elements: BoolProperty(name="Import Opening Elements", default=False)
@@ -523,8 +523,6 @@ class BIM_PT_mvd(Panel):
row = layout.row() row = layout.row()
row.prop(bim_properties, "import_export_should_roundtrip_native") row.prop(bim_properties, "import_export_should_roundtrip_native")
row = layout.row() row = layout.row()
row.prop(bim_properties, "export_should_export_from_memory")
row = layout.row()
row.prop(bim_properties, "import_should_use_cpu_multiprocessing") row.prop(bim_properties, "import_should_use_cpu_multiprocessing")
row = layout.row() row = layout.row()
row.prop(bim_properties, "import_should_import_with_profiling") row.prop(bim_properties, "import_should_import_with_profiling")