ifcopenshell.api.style.edit_presentation_style
#
Module Contents#
- class ifcopenshell.api.style.edit_presentation_style.Usecase(file, style=None, attributes=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.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"})
- execute(self)#