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
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)#