Refactor BBIM costing code, and re-use shared IOS utilies code

This commit is contained in:
Sigma Dimensions
2023-03-28 23:28:00 +00:00
parent 1170448cd0
commit 384c9c9872
2 changed files with 17 additions and 33 deletions
+3 -2
View File
@@ -198,8 +198,9 @@ def edit_cost_value(ifc, cost, cost_value):
def copy_cost_item_values(ifc, cost, source, destination):
ifc.run("cost.copy_cost_item_values", source=source, destination=destination)
def select_cost_item_products(cost, spatial, cost_item, include_nested):
products = cost.get_cost_item_products(cost_item, include_nested)
def select_cost_item_products(cost, spatial, cost_item):
is_deep = cost.show_nested_cost_item_elements()
products = cost.get_cost_item_products(cost_item, is_deep)
spatial.select_products(products)
def select_cost_schedule_products(cost, spatial, cost_schedule):