mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-21 08:35:14 +00:00
Fix #3667. Allow removing drawings if the sheet hasn't yet been generated or manually removed.
This commit is contained in:
@@ -174,6 +174,8 @@ class SheetBuilder:
|
|||||||
ET.register_namespace("", "http://www.w3.org/2000/svg")
|
ET.register_namespace("", "http://www.w3.org/2000/svg")
|
||||||
|
|
||||||
layout_path = tool.Drawing.get_document_uri(sheet, "LAYOUT")
|
layout_path = tool.Drawing.get_document_uri(sheet, "LAYOUT")
|
||||||
|
if not os.path.exists(layout_path):
|
||||||
|
return
|
||||||
layout_tree = ET.parse(layout_path)
|
layout_tree = ET.parse(layout_path)
|
||||||
layout_root = layout_tree.getroot()
|
layout_root = layout_tree.getroot()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user