Potentially risky refactor of add_representation in preparation of stabilisation and optimization of geometric operators.

This commit is contained in:
Dion Moult
2021-10-18 19:23:40 +11:00
parent 33f4461a87
commit 4577b7bf60
16 changed files with 561 additions and 97 deletions
@@ -10,7 +10,6 @@ class Usecase:
self.settings[key] = value
def execute(self):
self.schema = ifcopenshell.ifcopenshell_wrapper.schema_by_name(self.file.schema)
result = ifcopenshell.util.element.copy(self.file, self.settings["product"])
self.copy_direct_attributes(result)
self.copy_indirect_attributes(self.settings["product"], result)