mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
replace api.run with static methods
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user