ifcopenshell.util.cost
¶
Module Contents¶
- class ifcopenshell.util.cost.CostValueUnserialiser¶
- get_category(category)¶
- get_formula(formula)¶
- get_operand(operand)¶
- get_operator(operator)¶
- get_value(value)¶
- parse(formula: str)¶
- ifcopenshell.util.cost.calculate_applied_value(root_element: ifcopenshell.entity_instance, cost_value: ifcopenshell.entity_instance, category_filter=None) float ¶
- ifcopenshell.util.cost.get_all_nested_cost_items(cost_item: ifcopenshell.entity_instance) Generator[ifcopenshell.entity_instance, None, None] ¶
- ifcopenshell.util.cost.get_cost_assignments_by_type(cost_item: ifcopenshell.entity_instance, filter_by_type: FILTER_BY_TYPE | None = None) list[ifcopenshell.entity_instance] ¶
- ifcopenshell.util.cost.get_cost_item_assignments(cost_item: ifcopenshell.entity_instance, filter_by_type: FILTER_BY_TYPE | None = None, is_deep: bool = False) list[ifcopenshell.entity_instance] ¶
- ifcopenshell.util.cost.get_cost_items_for_product(product: ifcopenshell.entity_instance) list[ifcopenshell.entity_instance] ¶
Returns a list of cost items related to the given product.
- Args:
product: An object of class IfcProduct representing a product.
- Returns:
A list of IfcCostItem objects representing the cost items related to the product.
- ifcopenshell.util.cost.get_cost_values(cost_item: ifcopenshell.entity_instance) list[dict[str, str]] ¶
- ifcopenshell.util.cost.get_nested_cost_items(cost_item: ifcopenshell.entity_instance, is_deep=False) list[ifcopenshell.entity_instance] ¶
- ifcopenshell.util.cost.get_primitive_applied_value(applied_value: ifcopenshell.entity_instance | float | None) float ¶
- ifcopenshell.util.cost.get_root_cost_items(cost_schedule: ifcopenshell.entity_instance) list[ifcopenshell.entity_instance] ¶
- ifcopenshell.util.cost.get_schedule_cost_items(cost_schedule: ifcopenshell.entity_instance) Generator[ifcopenshell.entity_instance, None, None] ¶
- ifcopenshell.util.cost.get_total_quantity(root_element: ifcopenshell.entity_instance) float | None ¶
- ifcopenshell.util.cost.serialise_applied_value(applied_value: ifcopenshell.entity_instance) str ¶
- ifcopenshell.util.cost.serialise_cost_value(cost_value: ifcopenshell.entity_instance) str ¶
- ifcopenshell.util.cost.sum_child_root_elements(root_element: ifcopenshell.entity_instance, category_filter: str | None = None) float ¶
- ifcopenshell.util.cost.unserialise_cost_value(formula: str, cost_value: ifcopenshell.entity_instance) dict[str, Any] ¶
- ifcopenshell.util.cost.FILTER_BY_TYPE¶
- ifcopenshell.util.cost.arithmetic_operator_symbols¶
- ifcopenshell.util.cost.symbol_arithmetic_operators¶