ifcopenshell.api.layer.add_layer_with_style
¶
Module Contents¶
- ifcopenshell.api.layer.add_layer_with_style.add_layer_with_style(file: ifcopenshell.file, name: str = 'Unnamed', on: IfcLogical = 'UNKNOWN', frozen: IfcLogical = 'UNKNOWN', blocked: IfcLogical = 'UNKNOWN', styles: Sequence[ifcopenshell.entity_instance] = ()) ifcopenshell.entity_instance ¶
Adds a new layer with style
- Parameters:
name – The name of the layer.
on – Whether layer is visible.
frozen
blocked – Whether layer elements are blocked from manipulation.
styles – Styles to be used as default for representation item.
- Returns:
The newly created IfcPresentationLayerWithStyle element
Example:
- ifcopenshell.api.layer.add_layer_with_style(
model, name=”AI-WALL-FULL-DIMS-N”, on=True, frozen=False, blocked=False, stlyes=[curve_style]
)
- ifcopenshell.api.layer.add_layer_with_style.IfcLogical¶