mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-30 16:43:00 +00:00
Auto detect badly geolocated site from Tekla upon import
This commit is contained in:
@@ -173,6 +173,9 @@ class IfcImporter():
|
|||||||
self.ifc_import_settings.should_ignore_building_coordinates = True
|
self.ifc_import_settings.should_ignore_building_coordinates = True
|
||||||
elif applications[0].ApplicationFullName == '12D Model':
|
elif applications[0].ApplicationFullName == '12D Model':
|
||||||
self.ifc_import_settings.should_reset_absolute_coordinates = True
|
self.ifc_import_settings.should_reset_absolute_coordinates = True
|
||||||
|
elif applications[0].ApplicationFullName == 'Tekla Structures':
|
||||||
|
if self.is_ifc_class_far_away('IfcSite'):
|
||||||
|
self.ifc_import_settings.should_ignore_site_coordinates = True
|
||||||
|
|
||||||
def is_ifc_class_far_away(self, ifc_class):
|
def is_ifc_class_far_away(self, ifc_class):
|
||||||
for site in self.file.by_type(ifc_class):
|
for site in self.file.by_type(ifc_class):
|
||||||
|
|||||||
@@ -648,6 +648,11 @@ class BIM_PT_mvd(Panel):
|
|||||||
row = layout.row()
|
row = layout.row()
|
||||||
row.prop(bim_properties, 'import_should_auto_set_workarounds')
|
row.prop(bim_properties, 'import_should_auto_set_workarounds')
|
||||||
|
|
||||||
|
layout.label(text='Tekla Workarounds:')
|
||||||
|
|
||||||
|
row = layout.row()
|
||||||
|
row.prop(bim_properties, 'import_should_ignore_site_coordinates')
|
||||||
|
|
||||||
layout.label(text='12D Workarounds:')
|
layout.label(text='12D Workarounds:')
|
||||||
|
|
||||||
row = layout.row()
|
row = layout.row()
|
||||||
|
|||||||
Reference in New Issue
Block a user