sheeter - replace by_id with by_guid

No functional changes, just to make it more idiomatic (both `by_id` and `by_guid` end up doing `ifc_file[xxx]` under the hood).
This commit is contained in:
Andrej730
2025-06-25 18:40:14 +05:00
parent b6af68bfe6
commit 360afe68aa
@@ -397,8 +397,8 @@ class SheetBuilder:
drawing_id = int(view.attrib["data-id"])
try:
reference = tool.Ifc.get().by_id(int(view.attrib["data-id"]))
drawing = tool.Ifc.get().by_id(view.attrib["data-drawing"])
except:
drawing = tool.Ifc.get().by_guid(view.attrib["data-drawing"])
except RuntimeError:
# Perhaps the SVG has outdated content or is edited externally which we cannot control.
continue