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
+2 -2
View File
@@ -19,6 +19,7 @@
import bpy
import ifcopenshell
import ifcopenshell.api
import ifcopenshell.api.context
import ifcopenshell.util.representation
from ifcopenshell import template
from typing import Union, Any
@@ -80,8 +81,7 @@ class SvIfcStore:
# TODO change units to imperial
pass
model = ifcopenshell.util.representation.get_context(file, context="Model")
context = ifcopenshell.api.run(
"context.add_context",
context = ifcopenshell.api.context.add_context(
file,
context_type="Model",
context_identifier="Body",