I am trying to use texts for labelling in my wafer. As it has many components, it would be easier to distinguish components.
I found this discussion on the forum but it wasn't helpful for me. So can someone please guide me with this?
Found discussion: https://www.klayout.de/forum/comments.php?DiscussionID=225
The above forum post is concerning doing it via script.
The easiest way is through the GUI:
choose the Library = Basic
choose the Cell = TEXT
click on PCell, then enter your desired Text.
Choose the physical layer you want the text to appear on.
I'm resuming this topic because I can't access the link kindly provided by photonicbishal (might be deprecated).
While I'm aware of how to instantiate PCells via the Klayout GUI, I would like to know how to instantiate a text PCell using a Python macro.
All the best, and thank you Matthias for all the hard work!
I had to upgrade to a new version of the forum software. Because of this, the link format has changed: