Cell List Macro
This macro show a list with all cells in the current design.
Download: cellList.layout
1 #!/usr/bin/layout
2 #name=show cell list
3 #help=show cell list
4
5 int main(){
6 string s;
7 cellList *cells=layout->drawing->firstCell;
8 stringList sl;
9 // loop over all cells
10 while (cells!=NULL){
11 if (cells->thisCell!=NULL){
12 sl.append(cells->thisCell->cellName);
13 s+=cells->thisCell->cellName+"\r\n";
14 }
15 cells=cells->nextCell;
16 }
17
18 layout->showMessage("Cell List:",s);
19
20 }