I think I found the answer. Hope this helps to any other people who need to do the same task. It is really nice that you can even do it for multiple layers simultaneously! This will give you the absolute coordinates of each shape for a given cell an…
sorry for the late answer. I am not sure about the answer to this question because I didn't install the python (it is a shared computer).
However, I solved the problem by adding the location of the module folder into system path by …
Hello, you may get topological_sort error if you have an inconsistent hierarchy. Let's say you made cell with index 1(cell-1) a parent of cell with index 2 (cell-2), and after that if you are trying to make cell-2 also a parent of cell-1 you may get…
I answered my own question lol
layout=pya.Layout()a=pya.LayoutQuery.new("select cell.name, path_trans * cell.bbox, path_trans.disp.x, path_trans.disp.y from instances of ...*")for q in a.each(layout): print(q.data())
I found the answer as ruby code but having hard times to translate it into python.
I would really appreciate the help. :)
ly = RBA::CellView::active.layout# for batch mode save this text to "this_script.rb" and use# ly = RBA:…
Thanks for the answer. I will take a look.
By the way is there a way to read data from CSV files using pandas library? I can call libraries like numpy in Klayout but when I try to call pandas it says no module named pandas
Thanks a lot for the useful answer!
There is just one more error I get which is
'pya' has no attribute 'Application'
Although I can use pya's most of the classes, my pya version doesn't support classes like Application or LayoutVi…