mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +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
|
||||
elif applications[0].ApplicationFullName == '12D Model':
|
||||
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):
|
||||
for site in self.file.by_type(ifc_class):
|
||||
|
||||
@@ -648,6 +648,11 @@ class BIM_PT_mvd(Panel):
|
||||
row = layout.row()
|
||||
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:')
|
||||
|
||||
row = layout.row()
|
||||
|
||||
Reference in New Issue
Block a user