mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-17 05:52:33 +00:00
16 lines
341 B
Python
16 lines
341 B
Python
|
|
import ifcopenshell
|
||
|
|
|
||
|
|
class IfcFile(object):
|
||
|
|
file = None
|
||
|
|
bookmarks = {}
|
||
|
|
|
||
|
|
@classmethod
|
||
|
|
def load(cls, path=None):
|
||
|
|
cls.file = ifcopenshell.open(path)
|
||
|
|
|
||
|
|
@classmethod
|
||
|
|
def get(cls):
|
||
|
|
if not cls.file:
|
||
|
|
assert False, 'No file was loaded, so this requirement cannot be checked'
|
||
|
|
return cls.file
|