ifcopenshell.api.style.unassign_material_style

Module Contents

ifcopenshell.api.style.unassign_material_style.unassign_material_style(file: ifcopenshell.file, material: ifcopenshell.entity_instance, style: ifcopenshell.entity_instance, context: ifcopenshell.entity_instance) None

Unassigns a style to a material

This does the inverse of assign_material_style.

Parameters:
  • material (ifcopenshell.entity_instance) – The IfcMaterial which you want to unassign the style from.

  • style (ifcopenshell.entity_instance) – The IfcPresentationStyle (typically IfcSurfaceStyle) that you want to unassign from material. This will then be applied to all objects that have that material.

  • context (ifcopenshell.entity_instance) – The IfcGeometricRepresentationSubContext at which this style should be unassigned. Typically this is the Model BODY context.

Returns:

None

Return type:

None

Example:

ifcopenshell.api.style.unassign_material_style(model, material=concrete, style=style, context=body)