Skip to main content

create_styled_item

Function create_styled_item 

Source
pub fn create_styled_item(
    tx: &mut Transaction,
    model: &Model,
    schema: &Schema,
    draft: StyledItemDraft<'_>,
) -> StyleResult<EntityId>
Expand description

Stage a new IfcStyledItem in tx. Fails if styles is empty, item does not resolve to an IfcRepresentationItem, or a style does not resolve to its expected type for the target schema version.