add export to .ifcjson, related #839

This commit is contained in:
Jesusbill
2020-05-21 04:10:20 +02:00
parent d81196316d
commit ea1c3079cb
4 changed files with 114 additions and 1 deletions
@@ -57,6 +57,8 @@ class ExportIFC(bpy.types.Operator):
extension = self.filepath.split('.')[-1]
if extension == 'ifczip':
output_file = bpy.path.ensure_ext(self.filepath, '.ifczip')
elif extension == 'ifcjson':
output_file = bpy.path.ensure_ext(self.filepath, '.ifcjson')
else:
output_file = bpy.path.ensure_ext(self.filepath, '.ifc')
ifc_export_settings = export_ifc.IfcExportSettings.factory(context, output_file, logger)