mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 20:22:31 +00:00
add export to .ifcjson, related #839
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user