Skip to content

LayerPropertiesNodeRef not working as documented? #276

@klayoutmatthias

Description

@klayoutmatthias

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions