mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
bim.add_boundary - info message if no relevant elements selected
This commit is contained in:
@@ -602,6 +602,11 @@ class AddBoundary(bpy.types.Operator, tool.Ifc.Operator):
|
|||||||
parent_boundaries = []
|
parent_boundaries = []
|
||||||
|
|
||||||
objs = context.selected_objects
|
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:
|
if len(objs) == 2:
|
||||||
# The user may select two objects, a space and its related building element
|
# The user may select two objects, a space and its related building element
|
||||||
for obj in objs:
|
for obj in objs:
|
||||||
|
|||||||
Reference in New Issue
Block a user