Skip to main content

openbim_ifc_v0_1_entity_set_value

Function openbim_ifc_v0_1_entity_set_value 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn openbim_ifc_v0_1_entity_set_value( model: OpenbimIfcModel, id: u64, path: *const u8, path_len: usize, nodes: *const OpenbimIfcValueNode, node_count: usize, strings: *const u8, string_len: usize, ) -> OpenbimIfcStatus
Expand description

Write a one-value tape of plain values at path (UTF-8) of entity id, as one transaction: an attribute (Name, type.Name) coerced as openbim_ifc_v0_1_entity_set_attribute_by_name_plain coerces it, or a property (Pset_WallCommon.FireRating) from a TYPED value, or a plain one when the property already states its type. A refusal changes nothing.

InvalidValue for a path that names no single value (a pattern, count, a prefix reaching no entity), UnknownAttribute, DerivedAttribute, TypeMismatch (also for a plain value no stated property types), AmbiguousValue, and the property edit’s refusals.

§Safety

path valid for path_len reads; the tape as for openbim_ifc_v0_1_entity_set_attribute_by_name_plain.