ifcopenshell.api.material.edit_assigned_material

Module Contents

ifcopenshell.api.material.edit_assigned_material.edit_assigned_material(file: ifcopenshell.file, element: ifcopenshell.entity_instance, attributes: dict[str, Any]) None

Edits the attributes of an IfcMaterial

For more information about the attributes and data types of an IfcMaterial, consult the IFC documentation.

Parameters:
  • element (ifcopenshell.entity_instance) – The IfcMaterial entity you want to edit

  • attributes (dict) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

concrete = ifcopenshell.api.material.add_material(model, name="CON01", category="concrete")
ifcopenshell.api.material.edit_assigned_material(model,
    element=concrete, attributes={"Description": "40MPA concrete with broom finish"})