ifcopenshell.api.layer.remove_layer

Module Contents

ifcopenshell.api.layer.remove_layer.remove_layer(file, layer=None) 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.run("layer.add_layer", model, Name="AI-WALL")
ifcopenshell.api.run("layer.remove_layer", model, layer=layer)