ifcopenshell.api.style.remove_style#

Module Contents#

class ifcopenshell.api.style.remove_style.Usecase(file, style=None)#

Removes a presentation style

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

Parameters

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

Returns

None

Return type

None

Example:

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

# Not anymore!
ifcopenshell.api.run("style.remove_style", model, style=style)
execute(self)#
purge_material_definition_representations(self, styled_representation)#
purge_styled_items(self, style)#
purge_styled_representations(self, styled_item)#