type.unassign_type - support batching #4474

This commit is contained in:
Andrej730
2024-04-11 15:52:33 +05:00
parent 5098550399
commit 49e7abb4dc
6 changed files with 99 additions and 26 deletions
@@ -78,7 +78,7 @@ class UnassignType(bpy.types.Operator):
element = tool.Ifc.get_entity(obj)
if not element or element.is_a("IfcElementType"):
continue
ifcopenshell.api.run("type.unassign_type", self.file, related_object=element)
ifcopenshell.api.run("type.unassign_type", self.file, related_objects=[element])
active_representation = tool.Geometry.get_active_representation(obj)
active_context = active_representation.ContextOfItems