Dear Matthias,
Thank you very much for your kind reply.
I was wondering if it’s possible to convert a Python script into something like the attached “math module”—a compiled form that can be imported and used to call specific functions. My goal is…
Hello Matthias,
I found the relative topic but disscussed in Python, I put it into Ruby as below,
but I would like to ask two more questions if passible
1 ) After macro is run, the measurement cursor setting seems to be initialized ?
2 ) How …
Hello Matthias,
I am sorry, it seems not that easy as I thought if the circuit/device class just be embedded into
DRC & LVS engine. That's why I can not find out the relationship and build it by just Ruby script.
NetTrace is a handy way, if …
Hello acs
That's interesting, maybe you have simple & concrete example to show what you want.
I had split label and tried to do something by using a Ruby or Python script, before ( in different field )
But the efficiency will be lower than DRC …
Hello, Sepbe
I love Ruby more, I have changed my mind :/
import pyadef on_triggered(): pya.MessageBox.info("A message", "The action was triggered", pya.MessageBox.Ok) menu.action("edit_menu.selection_menu.align").…
Hello, Sepbe
Probably you try to do this?
import pyadef on_triggered(): pya.MessageBox.info("A message", "The action was triggered", pya.MessageBox.Ok)act = pya.Action()act.title = "My Action"act.on_triggered = on_t…
Updated, I found if I saved as new DXF file again by using " Visible layers only " function with just one layer, then it can be filled, but if there was more than 2 layers showed on window, the empty one still stood.
There should be som…
Hello Kazz - San & Matthias
Thanks for sharing, I followed the hints from Matthias to solve this, but I was not lucky.
I have deleted all versions of binaries, and downloaded install-type for today's homework
it's great to know that install-…
Hello Matthias,
Ruby is cool ! But I am still far away from building it as a master. I start to do something by using above submenu code,
and wonder if I can get the submenu just launching Klayout, without running the code again ?
Maybe there…
Hello Wang,
I am 0.28.3 ( Binary ) user. I try to do it under my own understanding , and it works. Please refer to below
ly = RBA::Layout.newl1 = ly.layer(1, 0)l2 = ly.layer(2, 0)ly.dbu = 0.001top = ly.create_cell("TOP")shape1 = RBA::…
@rounak1068
The code from Matthias belongs to " Ruby "
if you are fan of Python, please try below
import pyalayout = pya.CellView.active().layout()# Box in micron units:clip_rect = pya.DBox(30.0, 30.0, 110.0, 110.0)# create a clip cell …
Hello rounak1068,
Never use script to re-name cell before, I made a trial to rename top-cell "M", it works and a new GDS also be created
import pyaKLAYOUT = pya.Layout()gds_files = ["a.gds"]for each_gds in gds_files: KLAYOUT…
Hello,
Modified the code a bit, it might be you want?
import pyaKLAYOUT = pya.Layout()gds_files = ["xyz.gds"]for each_gds in gds_files: KLAYOUT.read(each_gds) for top_cell_read in KLAYOUT.top_cells(): if top_cell_read.name != "…
It's fine 🙂
@dick_freebird Yes, just as you said, top-bottom verification is doable, that's why I think Klayout is powerful, nice weekend~
Best regards,
Vincent
Hello Matthias,
Before this, I always outputted netlist.l2n , then some excel job followed
now I have warrior to guard another door, thanks
Finally.. passed the test B)
Best regards,
Vincent
Hello Matthias,
Thanks for showing me the door :)
"blank_circuit" trick is great, although this package is die level, but the " black box magic " still workable.
Please see below image -- part of the package ( I called it &q…
Hello, Pradhi
By the way, if inner / outer radius feature is not enough, maybe you can try this one,
which provided by Matthias, it can select edges by angle, and works under DRC macro
original = input(...)patches = original.notch(1.um, angle…
Hello,
Maybe can refer to this first, this method round the stuff that you select only
https://www.klayout.de/forum/discussion/comment/9139#Comment_9139
Hello Matthias,
Thanks for the great favor to me
Maybe the layer propertyies issue comes from my weird computer,
* first, I made the setting here
(Image)
* second, restart Klayout will get this layer already, and
run the code, a…