mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-11 22:31:55 +00:00
replace api.run with static methods
This commit is contained in:
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user