Skip to main content

shape_aspect

Function shape_aspect 

Source
pub fn shape_aspect(
    tx: &mut Transaction,
    shape_representations: &[EntityId],
    name: Option<&str>,
    description: Option<&str>,
    product_definitional: Option<bool>,
    part_of_product_definition_shape: Option<EntityId>,
) -> Result<EntityId, GeometryError>
Expand description

Stage an IfcShapeAspect: a named part of a product shape.

This is how a subtype points at one component of a larger representation – a varying structural member naming the aspect that carries its thickness, for instance.

ProductDefinitional is an IfcLogical, not a boolean: it may be UNKNOWN, meaning nobody has stated whether the aspect defines the product shape. None is written as that third state rather than being collapsed to false, which would assert something untrue.

§Errors

Refuses an empty shape_representations list, which is bounded LIST [1:?]: an aspect representing nothing names nothing.