#1. filter all cells with Fleld and PA/PB in cellname#2. check sub-cells in "field" cell, if with DARK and PA/PB in cell name add to array#3. return a arraay with unique cell namesde
I debugged your issue and actually it is a side effect of a duplicate cell name: the "WaveguideCoplanarStraight$66" cell is present twice: with ID #63 and #258. And there is another
as connected , but actually just #1 & #2 is one group, #3 , #4 are individually stand, not sure there is a better way to sort them ? I am trying to achieve this, will post when overcome
been implemented #Modifications #Tracy Groller#2/10/21#This Script is based on the Solution Matthias provided in January 2017 Klayout thread.#https://www.klayout.de/forum/discussion/comment/4167#Comm
3. #1, #2 bring me to the other problem, if the parent cell is not only contain "cell", but also others, then the other cells also be flatten.
The example you copied was case #2. So "output(255, 0)" would make sense then, but in your case, just give it a single string describing your check.