fix issues assigning material sets and material lists

This commit is contained in:
Andrej730
2024-07-29 12:45:41 +05:00
parent 11b62a0fdc
commit 46b3bfecd1
4 changed files with 8 additions and 3 deletions
@@ -74,6 +74,9 @@ def assign_material(
:param material: The IfcMaterial or material set you are assigning here.
If type is Usage then no need to provide `material`, it will be deduced
from the element type automatically.
If IfcMaterial is provided as material and type is not IfcMaterial,
provided material will be ignored except for IfcMaterialList
where it will be used as part of the list.
:type material: ifcopenshell.entity_instance, optional
:return: IfcRelAssociatesMaterial entity
or a list of IfcRelAssociatesMaterial entities