ifcopenshell.api.style.remove_style

Module Contents

class ifcopenshell.api.style.remove_style.Usecase
execute(style: ifcopenshell.entity_instance, do_not_delete: Iterable[ifcopenshell.entity_instance] = ()) None
purge_fill_area_style_hatching(fill_area_style_hatching: ifcopenshell.entity_instance, style: ifcopenshell.entity_instance) None
purge_inverses(style: ifcopenshell.entity_instance) None
purge_material_definition_representations(styled_representation: ifcopenshell.entity_instance) None
purge_styled_representations(styled_item: ifcopenshell.entity_instance) None
file: ifcopenshell.file
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 – The IfcPresentationStyle to remove.

Returns:

None

Example:

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

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