New option to ignore site, to import incorrectly geolocated IFCs

This behaviour occurs extensively in IFC files coming from Revit
This commit is contained in:
Dion Moult
2019-11-08 17:24:15 +11:00
parent c425b44ca9
commit 49efce7eca
3 changed files with 38 additions and 32 deletions
@@ -58,6 +58,7 @@ class ImportIFC(bpy.types.Operator, ImportHelper):
ifc_import_settings.logger = logging.getLogger('ImportIFC')
ifc_import_settings.logger.info('Starting import')
ifc_import_settings.input_file = self.filepath
ifc_import_settings.should_ignore_site_coordinates = bpy.context.scene.BIMProperties.import_should_ignore_site_coordinates
ifc_import_settings.should_import_curves = bpy.context.scene.BIMProperties.import_should_import_curves
ifc_importer = import_ifc.IfcImporter(ifc_import_settings)
ifc_importer.execute()