Skip to main content

add_property_set_with_owner_history

Function add_property_set_with_owner_history 

Source
pub fn add_property_set_with_owner_history(
    tx: &mut Transaction,
    model: &Model,
    global_id: &str,
    name: &str,
    description: Option<&str>,
    properties: &[(&str, EntityId)],
    owner_history: EntityId,
) -> PropertyResult<EntityId>
Expand description

add_property_set in the model’s declared release, with a caller-supplied IfcOwnerHistory, which IFC2X3 requires.

§Errors

Those of add_property_set, and: PropertyError::MultipleSchemas or PropertyError::UnsupportedSchema if the model binds no single known release; PropertyError::MissingEntity if owner_history is neither in the model nor staged; PropertyError::AuthoringInvalid if it is not an IfcOwnerHistory. Nothing is staged on an error.