I figured it out: the library can't have a top cell. All the library cells need to be top level - they can't be in their own "top" or "library" top cell. The description "even with their own hierarchy" made me think tha…
Hi Matthias,
I'm not 100% sure I was using that version, but I tried that one and got the same result.
Not a big deal, I found a solution using the gds_cellreplace.replaceCells function from Nazca.
Not to derail - but is it possible to use other G…
Hi Matthias,
I'm sorry if my post came off accusatory. KLayout is the only layout tool I've ever used (well except a few years of fumbling in LEdit in grad school) so when I hear from industry professionals that my file is "illegal" I take…
Thanks, as usual Matthias.
Unfortunately my more complex PCells generate polygons so I'll have to head down this rabbit hole. I do think it could be an opportunity to streamline my code though now that I think about it.
Long story short I'm drawin…
That makes sense- its such a minor issue I'm not worried about it.
Slightly bigger question: how can you assign icon's to menu items this way? I've Matthias post the code below:
a = RBA::Action.newa.title = "Push Me!"# more, i.e.# a.icon…
Ah ha, I see now. This is what I meant when I originally posted "Figure out a keyboard shortcut to the PCell window". I kind of like using the built in PCell/Instance window instead of reinventing the wheel with my own input window. Here, …
Outstanding! Got it working, thank you!
Next step question: the script drops the PCell at 0,0. Is it possible for the user to place the PCell with the mouse (same as when you insert an instance?) I remember reading it is non-trivial for scripts to …
OK, I did some more reading and I see that the code wrapper I was using was from old scripts before macros. (From http://klayout.de/forum/comments.php?DiscussionID=310&Focus=1425#Comment_1425). Right now I have:
module PhotonicsButtons $rect…
I'll give that a try in a few minutes. Below is the PCell code:
module NMFPhotonics include RBA # Remove any definition of our classes (this helps when # reexecuting this code after a change has been applied) NMFPhotonics.constants.mem…
Matthias - you're too kind! If I have coded further it is by standing on the shoulders of giants.
Fixed the bug but still get the same error- debug pointed to another script I had installed (density_map.lym) Removed that and I get a new error:
uni…
OK, I think I made pretty good progress based on the links you posted, and some other things I found on the forums (and a detour through Qt tutorials that didn't help much).
If I run this script in the IDE I get the button on the toolbar that I wan…
Thanks! I'll see what I can do tomorrow. A community site would be awesome- all I really had to start with was the sample P-Cell of "how to make a circle" and have been building up from there. Even a few more examples would be really helpf…