pub fn create_material_properties(
tx: &mut Transaction,
model: &Model,
name: Option<&str>,
description: Option<&str>,
properties: &[EntityId],
material: EntityId,
) -> MaterialResult<EntityId>Expand description
Stage an IfcMaterialProperties. IFC4 onwards.
Properties attached to a material definition rather than to an
occurrence: density, conductivity, and the rest of a datasheet.
Properties is a SET [1:?], so an empty set is malformed and
refused rather than written as an empty aggregate.
Material accepts any IfcMaterialDefinition subtype the model’s
release declares, not only IfcMaterial: a layer, profile or
constituent can carry its own properties.
§Errors
Refuses an empty property set, a Material reference whose target is
not a material definition, and an IFC2X3 model
(crate::MaterialError::EntityNotInSchema), whose
IfcMaterialProperties is abstract.