ifcopenshell.api.style.edit_presentation_style
¶
Module Contents¶
- ifcopenshell.api.style.edit_presentation_style.edit_presentation_style(file: ifcopenshell.file, style: ifcopenshell.entity_instance, attributes: dict[str, Any]) 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) – a dictionary of attribute names and values.
- Returns:
None
- Return type:
None
Example:
# Create a new surface style style = ifcopenshell.api.style.add_style(model) # Change the name of the style to "Foo" ifcopenshell.api.style.edit_presentation_style(model, style=style, attributes={"Name": "Foo"})