mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-18 11:20:21 +00:00
Decouple pset APIs from blenderbim namespace
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import blenderbim.bim.schema # TODO: refactor
|
||||
import ifcopenshell
|
||||
|
||||
|
||||
class Usecase:
|
||||
@@ -20,7 +20,9 @@ class Usecase:
|
||||
self.settings["qto"].Name = self.settings["Name"]
|
||||
|
||||
def load_qto_template(self):
|
||||
self.qto_template = blenderbim.bim.schema.ifc.psetqto.get_by_name(self.settings["qto"].Name)
|
||||
# TODO: add IFC2X3 PsetQto template support
|
||||
self.psetqto = ifcopenshell.util.pset.get_template("IFC4")
|
||||
self.qto_template = self.psetqto.get_by_name(self.settings["qto"].Name)
|
||||
|
||||
def update_existing_properties(self):
|
||||
for prop in self.settings["qto"].Quantities or []:
|
||||
|
||||
Reference in New Issue
Block a user