From 10642618e57464e1d743bb70fb32fadad30b96bd Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Mon, 3 Feb 2025 13:43:25 +0500 Subject: [PATCH] Fix error entering item mode for elevation/section annotations #6081 --- src/bonsai/bonsai/tool/drawing.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bonsai/bonsai/tool/drawing.py b/src/bonsai/bonsai/tool/drawing.py index 0e952a09e0..a442a47fbf 100644 --- a/src/bonsai/bonsai/tool/drawing.py +++ b/src/bonsai/bonsai/tool/drawing.py @@ -1321,6 +1321,10 @@ class Drawing(bonsai.core.tool.Drawing): context=context, ifc_representation_class=None, ) + assert element + representation = ifcopenshell.util.representation.get_representation(element, context) + assert representation + obj.data["ios_edges_item_ids"] = (representation.Items[0].id(),) return element @classmethod