replace api.run with static methods

This commit is contained in:
Andrej
2025-06-09 10:59:22 +05:00
parent 02d359d0e6
commit 8b4683aef1
122 changed files with 1334 additions and 1370 deletions
+3 -2
View File
@@ -29,6 +29,8 @@ It works on the active ifc file (if exists).
import bonsai.tool as tool
import ifcopenshell
import ifcopenshell.api.pset
import ifcopenshell.util.element
import sys
@@ -53,8 +55,7 @@ for annotation in annotations:
wrong_sep = "\\"
if platform == "win32":
wrong_sep = "/"
ifcopenshell.api.run(
"pset.edit_pset",
ifcopenshell.api.pset.edit_pset(
file,
pset=pset_ifc,
properties={