Skip to main content

Module mutation

Module mutation 

Source
Expand description

Transaction-staged cost authoring.

The quantity writer (#190), the cost item and schedule writers and their relationships (#202), and assign_cost_quantities (#203) bind the model’s declared release (IFC2X3, IFC4 or IFC4X3) and lay their records out by attribute name, as ifc-properties does. IFC2X3 requires IfcRoot.OwnerHistory: the IfcRoot writers that leave it unset refuse an IFC2X3 model, and their *_with_owner_history variants take a caller-supplied one. The cost value, currency and monetary-unit writers bind the release too (#213), so each record has its release’s arity.

Assigning cost items to their schedule is authored here; assigning a cost item to the products it prices is deliberately read-only (crate::relation::controlled_by). Validating that an arbitrary target is an IfcObjectDefinition needs the schema’s inheritance tables, which this crate reads only for the quantity layout.

Structs§

CalendarDate
An IFC2X3 IfcCalendarDate: a Gregorian day.
CostItemDraft
Draft for a selected IFC4 IfcCostItem.
CostScheduleDraft
Draft for an IFC4 IfcCostSchedule.
CostValueDraft
Draft for one supported IfcCostValue.
LocalTime
An IFC2X3 IfcLocalTime: a time of day.
NestingDraft
Draft for ordered cost-item nesting through IfcRelNests.
QuantityDraft
Authored fields for a simple physical quantity.
ScheduleAssignmentDraft
Draft assigning cost items to a cost schedule.

Enums§

CostAuthoringError
Why a bounded IFC4 cost draft was refused before staging.
CostItemType
Supported IfcCostItemTypeEnum values.
CostScheduleType
Supported IfcCostScheduleTypeEnum values.
CostValueKind
The unambiguous applied-value shape supported by bounded authoring.
DateTimeValue
A date, a time or both, as one release or another declares it.
QuantityKind
The physical dimension a simple quantity measures.

Functions§

assign_cost_quantities
Attach quantities to an existing IfcCostItem, in the model’s declared release.
assign_schedule_items
Validate and stage a schedule-to-items IfcRelAssignsToControl, with OwnerHistory unset.
assign_schedule_items_with_owner_history
assign_schedule_items with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.
create_cost_item
Validate and stage one cost item in the model’s declared release, with OwnerHistory unset.
create_cost_item_with_owner_history
create_cost_item with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.
create_cost_schedule
Validate and stage one cost schedule in the model’s declared release, with OwnerHistory unset.
create_cost_schedule_with_owner_history
create_cost_schedule with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.
create_cost_value
Validate and stage one scalar or explicitly composed cost value in the model’s declared release.
create_currency_relationship
Stage an IfcCurrencyRelationship: an exchange rate between two monetary units, in the model’s declared release.
create_monetary_unit
Stage an IfcMonetaryUnit in the model’s declared release.
create_quantity
Stage one simple physical quantity, in the model’s declared release.
nest_cost_items
Validate and stage ordered cost-item nesting, with OwnerHistory unset.
nest_cost_items_with_owner_history
nest_cost_items with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.

Type Aliases§

CostAuthoringResult
Result returned by bounded cost authoring helpers.