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
@@ -79,7 +79,7 @@ class Usecase:
profile_set=material_set, material=steel, profile=hea100)
# Great! Let's assign our material set to our beam type.
ifcopenshell.api.run("material.assign_material", model, product=beam_type, material=material_set)
ifcopenshell.api.run("material.assign_material", model, products=[beam_type], material=material_set)
"""
self.file = file
self.settings = {"profile_set": profile_set, "material": material, "profile": profile}