ifcopenshell.api.style.remove_style

Module Contents

class ifcopenshell.api.style.remove_style.Usecase
execute()
purge_material_definition_representations(styled_representation)
purge_styled_items(style)
purge_styled_representations(styled_item)
ifcopenshell.api.style.remove_style.remove_style(file: ifcopenshell.file, style: ifcopenshell.entity_instance) None

Removes a presentation style

All of the presentation items of the style will also be removed.

Parameters:

style (ifcopenshell.entity_instance) – The IfcPresentationStyle to remove.

Returns:

None

Return type:

None

Example:

# Create a new surface style
style = ifcopenshell.api.style.add_style(model)

# Not anymore!
ifcopenshell.api.style.remove_style(model, style=style)