mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-10-03 13:28:19 +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):
|
||||
|
||||
Reference in New Issue
Block a user