python changes for latebound schema manipulation from python

This commit is contained in:
Thomas Krijnen
2020-09-08 14:40:27 +02:00
parent 95a29dec7b
commit d506ad77b7
4 changed files with 268 additions and 117 deletions
@@ -73,6 +73,10 @@ def create_entity(type, *args, **kwargs):
for idx, arg in attrs:
e[idx] = arg
return e
gcroot = []
def register_schema(schema):
gcroot.append(schema)
ifcopenshell_wrapper.register_schema(schema.schema)
from .main import *