Implement feature for manipulating cost values, with support for calculation of subtotals

This commit is contained in:
Dion Moult
2021-04-26 18:18:42 +10:00
parent bfcc067257
commit 389076bff4
9 changed files with 307 additions and 18 deletions
@@ -11,7 +11,6 @@ class Usecase:
def execute(self):
quantity = self.file.create_entity(self.settings["ifc_class"], Name="Unnamed")
quantity[3] = 0.0
cost_item = ifcopenshell.api.run("root.create_entity", self.file, ifc_class="IfcCostItem")
quantities = list(self.settings["cost_item"].CostQuantities or [])
quantities.append(quantity)
self.settings["cost_item"].CostQuantities = quantities