Accommodate potential manual deletion of EPset drawing.

This commit is contained in:
Dion Moult
2023-09-18 23:41:13 +10:00
parent f1d2bd0eac
commit a251816de0
+1 -1
View File
@@ -445,7 +445,7 @@ class Drawing(blenderbim.core.tool.Drawing):
@classmethod
def get_drawing_target_view(cls, drawing):
return ifcopenshell.util.element.get_psets(drawing)["EPset_Drawing"].get("TargetView", "MODEL_VIEW")
return ifcopenshell.util.element.get_psets(drawing).get("EPset_Drawing", {}).get("TargetView", "MODEL_VIEW")
@classmethod
def get_group_elements(cls, group):