mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +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:
|
||||
name = document.DocumentId or "X"
|
||||
name += " - " + (document.Name or "Unnamed")
|
||||
if not hasattr(document, "Scope"):
|
||||
return
|
||||
if document.Scope == "DOCUMENTATION":
|
||||
return os.path.join(bpy.context.scene.BIMProperties.data_dir, "sheets", name + ".svg")
|
||||
elif document.Scope == "SCHEDULE":
|
||||
|
||||
Reference in New Issue
Block a user