bim.add_boundary - info message if no relevant elements selected

This commit is contained in:
Andrej730
2024-06-14 11:56:53 +05:00
parent 5911a602b9
commit b6b681c244
@@ -602,6 +602,11 @@ class AddBoundary(bpy.types.Operator, tool.Ifc.Operator):
parent_boundaries = []
objs = context.selected_objects
if not any((element:=tool.Ifc.get_entity(obj)) and element.is_a("IfcSpace") for obj in objs):
self.report({"INFO"}, "No IfcSpace elements selected.")
return {"FINISHED"}
if len(objs) == 2:
# The user may select two objects, a space and its related building element
for obj in objs: