mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-10 09:48:32 +00:00
Replace all ifcopenshell.api.run with ifcopenshell.api static functions.
This commit is contained in:
@@ -34,9 +34,9 @@ def remove_reference(file: ifcopenshell.file, reference: ifcopenshell.entity_ins
|
||||
|
||||
.. code:: python
|
||||
|
||||
document = ifcopenshell.api.run("document.add_information", model)
|
||||
reference = ifcopenshell.api.run("document.add_reference", model, information=document)
|
||||
ifcopenshell.api.run("document.remove_reference", model, reference=reference)
|
||||
document = ifcopenshell.api.document.add_information(model)
|
||||
reference = ifcopenshell.api.document.add_reference(model, information=document)
|
||||
ifcopenshell.api.document.remove_reference(model, reference=reference)
|
||||
"""
|
||||
|
||||
if file.schema == "IFC2X3":
|
||||
|
||||
Reference in New Issue
Block a user