mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-11 02:02:22 +00:00
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
This commit is contained in:
@@ -35,8 +35,8 @@ def remove_library(file: ifcopenshell.file, library: ifcopenshell.entity_instanc
|
||||
|
||||
.. code:: python
|
||||
|
||||
library = ifcopenshell.api.run("library.add_library", model, name="Brickschema")
|
||||
ifcopenshell.api.run("library.remove_library", model, library=library)
|
||||
library = ifcopenshell.api.library.add_library(model, name="Brickschema")
|
||||
ifcopenshell.api.library.remove_library(model, library=library)
|
||||
"""
|
||||
|
||||
if file.schema != "IFC2X3":
|
||||
|
||||
Reference in New Issue
Block a user