Replace all ifcopenshell.api.run with ifcopenshell.api static functions.

This commit is contained in:
Dion Moult
2024-06-28 12:36:31 +10:00
parent b5d613989e
commit 07060fc769
432 changed files with 4633 additions and 4856 deletions
@@ -39,10 +39,10 @@ def edit_presentation_style(
.. code:: python
# Create a new surface style
style = ifcopenshell.api.run("style.add_style", model)
style = ifcopenshell.api.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"})
ifcopenshell.api.style.edit_presentation_style(model, style=style, attributes={"Name": "Foo"})
"""
settings = {"style": style, "attributes": attributes or {}}