ifcopenshell.api.style.unassign_material_style

Module Contents

ifcopenshell.api.style.unassign_material_style.unassign_material_style(file, material=None, style=None, context=None) 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.run("style.unassign_material_style", model, material=concrete, style=style, context=body)