mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 09:21:46 +00:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user