It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Matthias & all!
Can I somehow open the PCell instance creation pop-up from Python? And also tell it which library and cell to use?
I'm experimentally working on integrating the meep FDTD solver with KLayout. The idea is that additionally to the photonic layout also simulation specific shapes such as sources and monitors can be defined. I created some PCells for this purpose which works fine.
For usability I would now like to have a shortcut for creating those PCells.
I imagine adding 'Source' and 'Monitor' buttons next to Polyon/Box/Path buttons. They should be a shortcut for selecting the right library and the right cell.
Thanks in advance!
Comments
Hi Thomas,
this is basically possible:
Every editing property can be configured - even PCell parameters which are encoded in "edit-inst-pcell-parameters" in a certain (hopefully self-explaining ) serialized way.
Best regards,
Matthias
Thanks Matthias!
Setting the library did not work, so I did the following:
This now works as intended but I don't know really what the difference should be between
edit-inst-cell-lib-name
andedit-inst-lib-name
.Hi Thomas,
you're right - sorry, it's supposed to be "edit-inst-lib-name". I have edited to code above.
Thanks for mentioning this.
Best regards,
Matthias
No problem! You're welcome