mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 17:57:02 +00:00
New feature to switch / load / create new contexts per object
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user