Allow users to toggle import of opening elements.

This commit is contained in:
Dion Moult
2020-01-31 12:52:44 +11:00
parent bb462659a3
commit 9571d4a67b
4 changed files with 11 additions and 1 deletions
@@ -147,7 +147,8 @@ class IfcImporter():
self.create_project()
self.create_spatial_hierarchy()
self.create_aggregates()
self.create_openings_collection()
if self.ifc_import_settings.should_import_opening_elements:
self.create_openings_collection()
self.purge_diff()
self.patch_ifc()
self.create_type_products()
@@ -276,6 +277,10 @@ class IfcImporter():
element = self.file.by_id(shape.guid)
if not self.ifc_import_settings.should_import_opening_elements \
and element.is_a('IfcOpeningElement'):
return
self.ifc_import_settings.logger.info('Creating object {}'.format(element))
# TODO: make names more meaningful
@@ -595,6 +600,7 @@ class IfcImportSettings:
self.should_ignore_building_coordinates = False
self.should_reset_absolute_coordinates = False
self.should_import_curves = False
self.should_import_opening_elements = False
self.should_treat_styled_item_as_material = False
self.should_use_cpu_multiprocessing = False
self.should_use_legacy = False