It looks like you're new here. If you want to get involved, click one of these buttons!
Hi,
I'm new to programming with klayout, has someone an example to help me start? I have a design composed of ~700 dies and I want to number them to find out more easily where I am.
I have cells named "0", "1", "2", "3", "4", "5"... and I want to find a way to place numbers on every die.
All I need is declare the cells containing the numbers at a certain location in a cell called "numbering".
Thanks,
Théophane
Comments
There are at least two ways to do it. Either, you add a text object with the number at the die top level on a new layer (so you can switch the numbering on or off) or you add a shape representing the number on a new layer. I think KLayout has this function somewhere:
https://www.klayout.de/doc-qt4/code/class_Text.html
or
https://www.klayout.de/doc-qt4/code/class_DText.html
for the text, and for the visible text shapes:
https://www.klayout.de/doc-qt4/code/class_TextGenerator.html
Good luck, Erwin