Reuse get_linked_models_document

This commit is contained in:
Andrej730
2025-06-27 14:15:40 +05:00
parent b3a708c06c
commit 9278974d98
+1 -8
View File
@@ -268,14 +268,7 @@ class Project(bonsai.core.tool.Project):
for link in links:
filepaths.add(Path(link.name))
links_document = next(
(
document
for document in ifc_file.by_type("IfcDocumentInformation")
if document.Name == "BBIM_Linked_Models"
),
None,
)
links_document = cls.get_linked_models_document()
if not filepaths and links_document is None:
return