See https://www.klayout.de/forum/discussion/1247/renaming-layers-in-python-script#latest This code does not do what it is supposed to: ``` current_view = pya.LayoutView.current() i = 1 for layer in current_view.each_layer(): layer.name = "LAYER" + str(i) i += 1 ```