Skip to content

Commit

Permalink
New workaround for importing Civil 3D files with absolute coords
Browse files Browse the repository at this point in the history
  • Loading branch information
Moult committed Apr 24, 2020
1 parent 80863f9 commit 13fef5a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ifcblenderexport/blenderbim/bim/import_ifc.py
Expand Up @@ -248,6 +248,8 @@ def auto_set_workarounds(self):
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 'Civil 3D' in applications[0].ApplicationFullName:
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
Expand Down
1 change: 1 addition & 0 deletions src/ifcblenderexport/blenderbim/bim/operator.py
Expand Up @@ -83,6 +83,7 @@ def execute(self, context):
ifc_import_settings.diff_file = bpy.context.scene.BIMProperties.diff_json_file
ifc_import_settings.should_ignore_site_coordinates = bpy.context.scene.BIMProperties.import_should_ignore_site_coordinates
ifc_import_settings.should_ignore_building_coordinates = bpy.context.scene.BIMProperties.import_should_ignore_building_coordinates
ifc_import_settings.should_reset_absolute_coordinates = bpy.context.scene.BIMProperties.import_should_reset_absolute_coordinates
ifc_import_settings.should_import_curves = bpy.context.scene.BIMProperties.import_should_import_curves
ifc_import_settings.should_import_opening_elements = bpy.context.scene.BIMProperties.import_should_import_opening_elements
ifc_import_settings.should_import_spaces = bpy.context.scene.BIMProperties.import_should_import_spaces
Expand Down
5 changes: 5 additions & 0 deletions src/ifcblenderexport/blenderbim/bim/ui.py
Expand Up @@ -933,6 +933,11 @@ def draw(self, context):
row = layout.row()
row.prop(bim_properties, 'import_should_reset_absolute_coordinates')

layout.label(text='Civil 3D Workarounds:')

row = layout.row()
row.prop(bim_properties, 'import_should_reset_absolute_coordinates')

layout.label(text='Revit Workarounds:')

row = layout.row()
Expand Down

0 comments on commit 13fef5a

Please sign in to comment.