material.assign_material - support batching #4474

This commit is contained in:
Andrej730
2024-04-12 11:21:35 +05:00
parent 32d2f1d629
commit 59cc9c0a16
43 changed files with 432 additions and 236 deletions
@@ -75,7 +75,7 @@ class TestAssignMaterialStyle(test.bootstrap.IFC4):
"material.add_constituent", self.file, constituent_set=material_set, material=material
)
constituent.Name = name
ifcopenshell.api.run("material.assign_material", self.file, product=element, material=material_set)
ifcopenshell.api.run("material.assign_material", self.file, products=[element], material=material_set)
ifcopenshell.api.run("style.assign_material_style", self.file, material=material, style=style, context=context)
@@ -71,7 +71,7 @@ class TestAssignMaterialStyle(test.bootstrap.IFC4):
"material.add_constituent", self.file, constituent_set=material_set, material=material
)
constituent.Name = name
ifcopenshell.api.run("material.assign_material", self.file, product=element, material=material_set)
ifcopenshell.api.run("material.assign_material", self.file, products=[element], material=material_set)
ifcopenshell.api.run("style.assign_material_style", self.file, material=material, style=style, context=context)
ifcopenshell.api.run(