This commit is contained in:
Andrej730
2024-05-22 11:05:42 +05:00
parent f460676e54
commit f2eb08a066
7 changed files with 61 additions and 18 deletions
+1 -1
View File
@@ -289,7 +289,7 @@ def calculate_cost_item_resource_value(ifc: tool.Ifc, cost_item: ifcopenshell.en
ifc.run("cost.calculate_cost_item_resource_value", cost_item=cost_item)
def export_cost_schedules(cost: tool.Cost, filepath, format, cost_schedule=None):
def export_cost_schedules(cost: tool.Cost, filepath: str, format: str, cost_schedule=None):
cost.play_sound()
return cost.export_cost_schedules(filepath, format, cost_schedule)
+2 -2
View File
@@ -529,7 +529,7 @@ class Cost(blenderbim.core.tool.Cost):
props.is_cost_update_enabled = True
@classmethod
def export_cost_schedules(cls, filepath, format=None, cost_schedule=None):
def export_cost_schedules(cls, filepath: str, format: str, cost_schedule=None):
import subprocess
import os
import sys
@@ -642,7 +642,7 @@ class Cost(blenderbim.core.tool.Cost):
return bool(cost_items)
@classmethod
def load_product_cost_items(cls, product):
def load_product_cost_items(cls, product: ifcopenshell.entity_instance) -> None:
props = bpy.context.scene.BIMCostProperties
props.is_cost_update_enabled = False
props.product_cost_items.clear()