Merge projects now merges all entities, not just rooted ones.

This commit is contained in:
Dion Moult
2022-09-19 23:44:10 +10:00
parent d751ee9995
commit 3f2d86255d
@@ -31,7 +31,7 @@ class Patcher:
source = ifcopenshell.open(self.args[0])
original_project = self.file.by_type("IfcProject")[0]
merged_project = self.file.add(source.by_type("IfcProject")[0])
for element in source.by_type("IfcRoot"):
for element in source:
self.file.add(element)
for inverse in self.file.get_inverse(merged_project):
ifcopenshell.util.element.replace_attribute(inverse, merged_project, original_project)