Skip to main content

exact_material_property

Function exact_material_property 

Source
pub fn exact_material_property(
    model: &Model,
    material: EntityId,
    set_name: Option<&str>,
    property_name: &str,
) -> Result<ExactResolution, ExactPropertyError>
Expand description

Resolve a property of material definition material by exact set and property name (#218).

The material’s property sets are its IFC4 and IFC4X3 IfcMaterialProperties (the inverse HasProperties), or its IFC2X3 IfcExtendedMaterialProperties and typed IfcMaterialProperties subtypes. A named property resolves as in exact_property, with the same values, units and refusals, and ExactSource::Material of material. An attribute of an IFC2X3 typed subtype resolves as a predefined set’s attribute does, in the set named by its entity (IfcMechanicalMaterialProperties.YoungModulus).

material is an IfcMaterialDefinition in IFC4 and IFC4X3 (a material, layer, layer set, profile, profile set, constituent or constituent set) and an IfcMaterial in IFC2X3. ExactResolution::Absent is a proven absence, also when the material has no property sets at all. Material sets do not inherit from anywhere: a layer’s properties are the layer’s own, not its material’s.

§Errors

Any ExactPropertyError, as for exact_property; a query target of another kind is ExactPropertyError::InvalidQueryObject.