BuildingInformationModel.assign_material

BuildingInformationModel.assign_material(material, element=None, elements=None)

Assign a material to an element or a list of elements.

Parameters:
material

The material.

element

The element to assign the material to.

elements

The list of elements to assign the material to.

Raises:
ValueError

If neither element or elements is provided.

ValueError

If both element and elements are provided.

ValueError

If the material is not part of the model.

ValueError

If the provided element or one of the elements in the provided element list is not part of the model.