ScrEditLayerName

Sets a new name for a specified layer.
UI Command:   Click Home > Layer Stackup Editor. Enter a value in the Name field.
Syntax:   obj.ScrEditLayerName(<layerName>, <newLayerName>)
Parameters:  

BSTR layerName

BSTR newLayerName

Return Value:  

None.

VB Example:  

obj.ScrEditLayerName("MY LAYER","MY NEW LAYER")

IPY Example:  

oDoc.ScrEditLayerName('MY LAYER','MY NEW LAYER')