It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
On the GUI, when I right-click on the layer list -> 'Sort By' -> 'Layout index, Layer And Datatype'
this sorts the layer,
I would like to do the same in Python,
Most commands from the right click list are part of the class LayoutView
Is there also a prepared command for it?
Comments
There is no direct call point for this. But there is some discussion about how to manipulate layer lists in Python safely: https://www.klayout.de/forum/discussion/comment/5919#Comment_5919
Matthias
Hi thanks for the link, here is the code I made for sorting through layer number and datatype: