New feature to switch / load / create new contexts per object

This commit is contained in:
Dion Moult
2020-05-07 16:57:14 +10:00
parent 673f12dd8a
commit bbc429bb99
4 changed files with 66 additions and 6 deletions
@@ -1,5 +1,15 @@
import bpy
import ifcopenshell
class IfcStore():
path = ''
file = None
pset_template_path = ''
pset_template_file = None
@staticmethod
def get_file():
if IfcStore.file is None:
IfcStore.path = bpy.context.scene.BIMProperties.ifc_file
IfcStore.file = ifcopenshell.open(IfcStore.path)
return IfcStore.file