Decouple pset APIs from blenderbim namespace

This commit is contained in:
Dion Moult
2021-04-29 19:35:21 +10:00
parent e5cf0cde2d
commit 37e3a65ffb
5 changed files with 20 additions and 7 deletions
@@ -6,6 +6,15 @@ from typing import List, Generator, Optional
import ifcopenshell
from ifcopenshell.entity_instance import entity_instance
templates = {}
def get_template(schema):
global templates
if schema not in templates:
templates[schema] = PsetQto(schema)
return templates[schema]
class PsetQto:
templates_path = {