ifcopenshell.api.style.edit_presentation_style

Module Contents

ifcopenshell.api.style.edit_presentation_style.edit_presentation_style(file, style=None, attributes=None) None

Edits the attributes of an IfcPresentationStyle

For more information about the attributes and data types of an IfcPresentationStyle, consult the IFC documentation.

Parameters:
  • style (ifcopenshell.entity_instance) – The IfcPresentationStyle entity you want to edit

  • attributes (dict, optional) – a dictionary of attribute names and values.

Returns:

None

Return type:

None

Example:

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

# Change the name of the style to "Foo"
ifcopenshell.api.run("style.edit_presentation_style", model, style=style, attributes={"Name": "Foo"})