Skip to main content

create_distribution_element_with_owner_history

Function create_distribution_element_with_owner_history 

Source
pub fn create_distribution_element_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    kind: DistributionElementKind,
    global_id: &str,
    attributes: ElementAttributes<'_>,
    owner_history: EntityId,
) -> SystemAuthoringResult<EntityId>
Expand description

create_distribution_element in model’s declared release, with a caller-supplied IfcOwnerHistory, which IFC2X3 requires (#202).

Every DistributionElementKind declares the same eight attributes in IFC2X3, IFC4 and IFC4X3; only OwnerHistory changes, from required to optional. The owner history is never invented.

§Errors

Those of create_distribution_element, and the release and owner-history refusals of create_system_with_owner_history. Nothing is staged on an error.