add_layer_above#

LayerCollection.add_layer_above(layer_to_add, layer_to_add_above_name)#

Add a new layer above the specified layer.

This method adjusts existing layers as needed to maintain stackup consistency.

Parameters:
layer_to_addLayer

Name of the layer to add.

layer_to_add_above_namestr

Name of the layer above which to add the new layer.

Returns:
Layer