mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-12 06:32:09 +00:00
assign/unassign group - add info message
This commit is contained in:
@@ -202,6 +202,7 @@ class AssignGroup(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if (element := tool.Ifc.get_entity(o))
|
if (element := tool.Ifc.get_entity(o))
|
||||||
]
|
]
|
||||||
ifcopenshell.api.group.assign_group(tool.Ifc.get(), products=products, group=tool.Ifc.get().by_id(self.group))
|
ifcopenshell.api.group.assign_group(tool.Ifc.get(), products=products, group=tool.Ifc.get().by_id(self.group))
|
||||||
|
self.report({"INFO"}, f"Assigned {len(products)} objects to group.")
|
||||||
|
|
||||||
|
|
||||||
class UnassignGroup(bpy.types.Operator, tool.Ifc.Operator):
|
class UnassignGroup(bpy.types.Operator, tool.Ifc.Operator):
|
||||||
@@ -220,6 +221,7 @@ class UnassignGroup(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
if not products:
|
if not products:
|
||||||
return
|
return
|
||||||
ifcopenshell.api.group.unassign_group(tool.Ifc.get(), products=products, group=tool.Ifc.get().by_id(self.group))
|
ifcopenshell.api.group.unassign_group(tool.Ifc.get(), products=products, group=tool.Ifc.get().by_id(self.group))
|
||||||
|
self.report({"INFO"}, f"Unassigned {len(products)} objects from group.")
|
||||||
|
|
||||||
|
|
||||||
class SelectGroupElements(bpy.types.Operator):
|
class SelectGroupElements(bpy.types.Operator):
|
||||||
|
|||||||
Reference in New Issue
Block a user