Fix selecting unassigned work/cost schedule products

This commit is contained in:
Sigma Dimensions
2023-05-21 12:59:54 +01:00
parent 9e0f1db6dc
commit 5e5d4f57f4
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -249,7 +249,7 @@ def clear_cost_item_assignments(ifc, cost, cost_item, related_object_type):
def select_unassigned_products(ifc, cost, spatial):
spatial.deselect_all()
spatial.deselect_objects()
products = ifc.get().by_type("IfcElement")
cost_schedule = cost.get_active_cost_schedule()
selection = [product for product in products if not cost.has_cost_assignments(product, cost_schedule)]
+1 -1
View File
@@ -443,7 +443,7 @@ def select_work_schedule_products(sequence, spatial, work_schedule=None):
def select_unassigned_work_schedule_products(ifc, sequence, spatial):
spatial.deselect_all()
spatial.deselect_objects()
products = ifc.get().by_type("IfcElement")
work_schedule = sequence.get_active_work_schedule()
schedule_products = sequence.get_work_schedule_products(work_schedule)
+1 -2
View File
@@ -165,8 +165,7 @@ class Cost:
def expand_cost_item_rate(cls, cost_item): pass
def expand_cost_item(cls, cost_item): pass
def expand_cost_items(cls): pass
def export_cost_schedules(cls, format): pass
def export_cost_schedules(cls, format): pass
def export_cost_schedules(cls, format, cost_schedule): pass
def format_unit(cls, unit): pass
def get_active_cost_item(cls): pass
def get_active_cost_schedule(cls): pass