Skip to main content

set_description

Function set_description 

Source
pub fn set_description(
    tx: &mut Transaction,
    model: &Model,
    id: EntityId,
    description: Option<&str>,
) -> Result<(), PropertyError>
Expand description

Stage a new Description, or clear it with None.

Slot 1 on both IfcPhysicalQuantity and IfcProperty. None writes Value::Null, which is STEP’s $ – the attribute is genuinely unset, not set to an empty string. The distinction survives a round trip and a consumer can tell “no description” from “description is blank”.

§Errors

PropertyError::MissingEntity if id is not in the model.