mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
typing
This commit is contained in:
@@ -2275,7 +2275,6 @@ class RemoveDrawing(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def poll(cls, context):
|
def poll(cls, context):
|
||||||
props = tool.Drawing.get_document_props()
|
|
||||||
if not tool.Drawing.get_active_drawing_item():
|
if not tool.Drawing.get_active_drawing_item():
|
||||||
cls.poll_message_set("No drawing selected.")
|
cls.poll_message_set("No drawing selected.")
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -42,6 +42,8 @@ class Search(bonsai.core.tool.Search):
|
|||||||
def get_group_query(cls, group: ifcopenshell.entity_instance) -> str:
|
def get_group_query(cls, group: ifcopenshell.entity_instance) -> str:
|
||||||
return json.loads(group.Description)["query"]
|
return json.loads(group.Description)["query"]
|
||||||
|
|
||||||
|
FilterModule = Union[Literal["search", "csv", "diff", "drawing_include", "drawing_exclude"], str]
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def get_filter_groups(cls, module: FilterModule) -> bpy.types.bpy_prop_collection_idprop[BIMFilterGroup]:
|
def get_filter_groups(cls, module: FilterModule) -> bpy.types.bpy_prop_collection_idprop[BIMFilterGroup]:
|
||||||
if module == "search":
|
if module == "search":
|
||||||
|
|||||||
Reference in New Issue
Block a user