From dbbbc54f197ce1e0b6e4def9ea77fc1d2e5a407e Mon Sep 17 00:00:00 2001 From: Petru Conduraru Date: Tue, 7 Jul 2026 17:39:09 +0300 Subject: [PATCH] Bonsai: make 'has openings' representation error actionable (#8108) When converting a wall representation to a parametric extrusion via the Representation Utilities buttons, an element that has openings would report "has openings - representation cannot be updated" and stop, without telling the user there is an ALT+click path that bakes the openings into the new representation. Point the message at that path so the error is actionable. Co-Authored-By: Claude Opus 4.8 (cherry picked from commit 25441bd816a96e3663261800fb4a5b25a4e1b5d3) --- src/bonsai/bonsai/bim/module/geometry/operator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bonsai/bonsai/bim/module/geometry/operator.py b/src/bonsai/bonsai/bim/module/geometry/operator.py index cf57f9f3c8..3c32f01618 100644 --- a/src/bonsai/bonsai/bim/module/geometry/operator.py +++ b/src/bonsai/bonsai/bim/module/geometry/operator.py @@ -581,7 +581,11 @@ class UpdateRepresentation(bpy.types.Operator, tool.Ifc.Operator): if has_openings and not self.apply_openings: # Meshlike things with openings can only be updated without openings applied. if self.from_ui: - self.report({"ERROR"}, f"Object '{obj.name}' has openings - representation cannot be updated.") + self.report( + {"ERROR"}, + f"Object '{obj.name}' has openings. " + "ALT+click the button to bake the openings into the new representation.", + ) return if product.is_a("IfcGridAxis"):