mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 16:21:01 +00:00
Reuse get_linked_models_document
This commit is contained in:
@@ -268,14 +268,7 @@ class Project(bonsai.core.tool.Project):
|
|||||||
for link in links:
|
for link in links:
|
||||||
filepaths.add(Path(link.name))
|
filepaths.add(Path(link.name))
|
||||||
|
|
||||||
links_document = next(
|
links_document = cls.get_linked_models_document()
|
||||||
(
|
|
||||||
document
|
|
||||||
for document in ifc_file.by_type("IfcDocumentInformation")
|
|
||||||
if document.Name == "BBIM_Linked_Models"
|
|
||||||
),
|
|
||||||
None,
|
|
||||||
)
|
|
||||||
|
|
||||||
if not filepaths and links_document is None:
|
if not filepaths and links_document is None:
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user