You can now associate IFC elements with Brick elements and navigate to them

This commit is contained in:
Dion Moult
2021-11-17 13:27:07 +11:00
parent da6945b352
commit f9221717ff
12 changed files with 248 additions and 3 deletions
@@ -11,4 +11,10 @@ class Usecase:
self.settings[key] = value
def execute(self):
if self.file.schema == "IFC2X3":
reference = self.file.createIfcLibraryReference()
references = list(self.settings["library"].LibraryReference or [])
references.append(reference)
self.settings["library"].LibraryReference = references
return reference
return self.file.createIfcLibraryReference(ReferencedLibrary=self.settings["library"])