mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
Drawing style queries now use new selector syntax
This commit is contained in:
@@ -1884,10 +1884,10 @@ class ActivateDrawingStyle(bpy.types.Operator, Operator):
|
|||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
if self.drawing_style.include_query:
|
if self.drawing_style.include_query:
|
||||||
results = ifcopenshell.util.selector.Selector.parse(ifc, self.drawing_style.include_query)
|
results = ifcopenshell.util.selector.filter_elements(ifc, self.drawing_style.include_query)
|
||||||
self.include_global_ids.extend([e.GlobalId for e in results])
|
self.include_global_ids.extend([e.GlobalId for e in results])
|
||||||
if self.drawing_style.exclude_query:
|
if self.drawing_style.exclude_query:
|
||||||
results = ifcopenshell.util.selector.Selector.parse(ifc, self.drawing_style.exclude_query)
|
results = ifcopenshell.util.selector.filter_elements(ifc, self.drawing_style.exclude_query)
|
||||||
self.exclude_global_ids.extend([e.GlobalId for e in results])
|
self.exclude_global_ids.extend([e.GlobalId for e in results])
|
||||||
if self.drawing_style.include_query:
|
if self.drawing_style.include_query:
|
||||||
self.parse_filter_query("INCLUDE", context)
|
self.parse_filter_query("INCLUDE", context)
|
||||||
|
|||||||
Reference in New Issue
Block a user