mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 06:39:13 +00:00
16 lines
370 B
Python
16 lines
370 B
Python
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
|