mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
Fix error entering item mode for elevation/section annotations #6081
This commit is contained in:
@@ -1321,6 +1321,10 @@ class Drawing(bonsai.core.tool.Drawing):
|
|||||||
context=context,
|
context=context,
|
||||||
ifc_representation_class=None,
|
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
|
return element
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
|
|||||||
Reference in New Issue
Block a user