pub fn add_property_single_value(
tx: &mut Transaction,
name: &str,
specification: Option<&str>,
value: Option<Value>,
unit: Option<EntityId>,
) -> PropertyResult<EntityId>Expand description
Stage an IfcPropertySingleValue.
value is an IfcValue: a measure-wrapped scalar such as
Value::Typed { type_name: IFCLENGTHMEASURE, .. }. IfcValue is a
SELECT, so ISO 10303-21 writes its value as a typed parameter naming
the member; this crate will not invent a measure for a bare literal.
specification is IfcProperty.Specification: prose describing
what the property means, kept distinct from its value.
ยงErrors
Refuses a blank name: IfcProperty.Name is required, and a
whitespace-only name satisfies EXISTS while naming nothing. Refuses a
bare literal with PropertyError::ValueForm, and a value that is no
IfcValue (a reference, an aggregate, an enumeration constant) with
PropertyError::AuthoringInvalid.