mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
WIP purge old export IFC. No going back! See #1222.
This commit is contained in:
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")
|
||||||
|
|||||||
Reference in New Issue
Block a user