New ifcopenshell.api.run syntax, and rename create_product to create_entity. See #1399.

This commit is contained in:
Dion Moult
2021-03-27 22:52:52 +11:00
parent 62540f0b00
commit ce03742aab
44 changed files with 490 additions and 441 deletions
@@ -1,4 +1,4 @@
import ifcopenshell.api.geometry.remove_representation as remove_representation
import ifcopenshell.api
import ifcopenshell.util.element
@@ -53,4 +53,4 @@ class Usecase:
for item in mapped_representations:
self.unassign_product_representation(item["product"], item["representation"])
for representation in just_representations:
remove_representation.Usecase(self.file, {"representation": representation}).execute()
ifcopenshell.api.run("owner.remove_representation", self.file, **{"representation": representation})