mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
Fix #1513. Materials now are included when importing types from a project library.
This commit is contained in:
@@ -11,6 +11,8 @@ class Usecase:
|
||||
|
||||
def execute(self):
|
||||
element = self.file.add(self.settings["element"])
|
||||
for rel in self.settings["element"].HasAssociations:
|
||||
self.file.add(rel)
|
||||
self.existing_contexts = self.file.by_type("IfcGeometricRepresentationContext")
|
||||
added_contexts = [e for e in self.file.traverse(element) if e.is_a("IfcGeometricRepresentationContext")]
|
||||
for added_context in added_contexts:
|
||||
|
||||
Reference in New Issue
Block a user