mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
BBIM: Fix bug error when trying to open a drawing rather than a sheet/schedule
This commit is contained in:
@@ -187,6 +187,8 @@ class Drawing(blenderbim.core.tool.Drawing):
|
|||||||
else:
|
else:
|
||||||
name = document.DocumentId or "X"
|
name = document.DocumentId or "X"
|
||||||
name += " - " + (document.Name or "Unnamed")
|
name += " - " + (document.Name or "Unnamed")
|
||||||
|
if not hasattr(document, "Scope"):
|
||||||
|
return
|
||||||
if document.Scope == "DOCUMENTATION":
|
if document.Scope == "DOCUMENTATION":
|
||||||
return os.path.join(bpy.context.scene.BIMProperties.data_dir, "sheets", name + ".svg")
|
return os.path.join(bpy.context.scene.BIMProperties.data_dir, "sheets", name + ".svg")
|
||||||
elif document.Scope == "SCHEDULE":
|
elif document.Scope == "SCHEDULE":
|
||||||
|
|||||||
Reference in New Issue
Block a user