ifcopenshell.api.layer.remove_layer

Module Contents

ifcopenshell.api.layer.remove_layer.remove_layer(file: ifcopenshell.file, layer: ifcopenshell.entity_instance) None

Removes a layer

All representation items assigned to the layer will remain, but the relationship to the layer will be removed.

Parameters:

layer (ifcopenshell.entity_instance) – The IfcPresentationLayerAssignment entity to remove

Returns:

None

Return type:

None

Example:

layer = ifcopenshell.api.layer.add_layer(model, name="AI-WALL")
ifcopenshell.api.layer.remove_layer(model, layer=layer)