From 6be06bb6c575b634932d2f7be443d2c8f622b142 Mon Sep 17 00:00:00 2001 From: Ryan Schultz Date: Sun, 28 Jun 2026 13:15:16 -0500 Subject: [PATCH] Allow deletion of user-placed SECTION_LEVEL/PLAN_LEVEL annotations is_auto_annotation now returns False for SECTION_LEVEL/PLAN_LEVEL annotations that carry a BBIM_Dimension pset, which is always written by _do_write_anchor during AddElevationAnnotation placement. Auto-generated elevation annotations (no BBIM_Dimension pset) remain protected from deletion. Co-Authored-By: Claude Sonnet 4.6 --- src/bonsai/bonsai/tool/drawing.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bonsai/bonsai/tool/drawing.py b/src/bonsai/bonsai/tool/drawing.py index df5ca8193e..708f5b6c7b 100644 --- a/src/bonsai/bonsai/tool/drawing.py +++ b/src/bonsai/bonsai/tool/drawing.py @@ -1650,6 +1650,9 @@ class Drawing(bonsai.core.tool.Drawing): return False if ifcopenshell.util.element.get_pset(element, "EPset_Annotation", "IsManualDrawingReference"): return False + ptype = ifcopenshell.util.element.get_predefined_type(element) + if ptype in ("SECTION_LEVEL", "PLAN_LEVEL") and ifcopenshell.util.element.get_pset(element, "BBIM_Dimension"): + return False return True @classmethod