mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
bim.save_search - not to fail silently
This commit is contained in:
@@ -19,6 +19,7 @@
|
||||
import bpy
|
||||
import json
|
||||
import bisect
|
||||
import traceback
|
||||
import ifcopenshell
|
||||
import ifcopenshell.api
|
||||
import ifcopenshell.api.group
|
||||
@@ -193,6 +194,8 @@ class SaveSearch(Operator, tool.Ifc.Operator):
|
||||
query = tool.Search.export_filter_query(filter_groups)
|
||||
results = ifcopenshell.util.selector.filter_elements(tool.Ifc.get(), query)
|
||||
except:
|
||||
print(traceback.format_exc())
|
||||
self.report({"ERROR"}, "Error occurred trying save search.")
|
||||
return
|
||||
|
||||
description = json.dumps({"type": "BBIM_Search", "query": query})
|
||||
|
||||
Reference in New Issue
Block a user