ifcopenshell.api.material.edit_assigned_material
¶
Module Contents¶
- ifcopenshell.api.material.edit_assigned_material.edit_assigned_material(file, element=None, attributes=None) 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, optional) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
concrete = ifcopenshell.api.run("material.add_material", model, name="CON01", category="concrete") ifcopenshell.api.run("material.edit_assigned_material", model, element=concrete, attributes={"Description": "40MPA concrete with broom finish"})