From 44131a7fe51552cc6a9157941da0fc18c2c65b7a Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Thu, 16 Jan 2025 15:45:46 +0500 Subject: [PATCH] Select filling objects from UI Example - https://i.imgur.com/BijTwgo.png --- src/bonsai/bonsai/bim/module/void/ui.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/bonsai/bonsai/bim/module/void/ui.py b/src/bonsai/bonsai/bim/module/void/ui.py index c5e5f45ada..d2f264f5b2 100644 --- a/src/bonsai/bonsai/bim/module/void/ui.py +++ b/src/bonsai/bonsai/bim/module/void/ui.py @@ -60,6 +60,9 @@ class BIM_PT_voids(Panel): for filling in VoidsData.data["fillings"]: row = self.layout.row(align=True) row.label(text=filling["Name"], icon="SELECT_INTERSECT") + op = row.operator("bim.select_entity", text="", icon="RESTRICT_SELECT_OFF") + op.ifc_id = filling["id"] + op.tooltip = "Select filling object." row.operator("bim.remove_filling", icon="X", text="").filling = filling["id"] else: if not VoidsData.data["openings"]: @@ -72,6 +75,9 @@ class BIM_PT_voids(Panel): row = self.layout.row(align=True) row.label(text=opening["Name"], icon="SELECT_SUBTRACT") row.label(text=filling["Name"], icon="SELECT_INTERSECT") + op = row.operator("bim.select_entity", text="", icon="RESTRICT_SELECT_OFF") + op.ifc_id = filling["id"] + op.tooltip = "Select filling object." else: row = self.layout.row(align=True) row.label(text=opening["Name"], icon="SELECT_SUBTRACT")