merage master v6.0.0

This commit is contained in:
admin
2021-04-12 10:26:10 +08:00
parent 72fdca9e82
commit 397b6ae5fe
52 changed files with 1415 additions and 195 deletions
@@ -18,9 +18,9 @@ class Usecase:
elif self.settings["product"].is_a("IfcTypeProduct"):
representations = [rm.MappedRepresentation for rm in self.settings["product"].RepresentationMaps or []]
for representation in representations:
ifcopenshell.api.run("owner.unassign_representation",
ifcopenshell.api.run("geometry.unassign_representation",
self.file, **{"product": self.settings["product"], "representation": representation}
)
ifcopenshell.api.run("owner.remove_representation", self.file, **{"representation": representation})
ifcopenshell.api.run("geometry.remove_representation", self.file, **{"representation": representation})
# TODO: remove object placement and other relationships
self.file.remove(self.settings["product"])