mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
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 <noreply@anthropic.com>
This commit is contained in:
@@ -1650,6 +1650,9 @@ class Drawing(bonsai.core.tool.Drawing):
|
|||||||
return False
|
return False
|
||||||
if ifcopenshell.util.element.get_pset(element, "EPset_Annotation", "IsManualDrawingReference"):
|
if ifcopenshell.util.element.get_pset(element, "EPset_Annotation", "IsManualDrawingReference"):
|
||||||
return False
|
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
|
return True
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user