You are a genius Matthias. Thank you.
Sorry for the confusion about not having the move_layer function in there. I had removed it to try something else and forgot to put it back.
I am actually reading a GDS file a calling a cell by name with a certain layer (123) and then placing it into a new layout where I am then attempting to change the layer. The cells that are being called are polygons mostly.
Here is the code:
module…
For some reason the layer of the cell that I am trying to manipulate is not valid. I'm not sure how that happens. The cell is called from another GDS file. Is that what makes it invalid, or is it because it was invalid in the previous GDS file?
This should be a very simple question. How do I get the index number for a string?
For example, if a = "ABC" what function can I perform on the variable a in order to determine the number of individual string characters which in this case …
Thank you for that link.
Can you tell me why this script keeps crashing KLayout?
module MyMacro
include RBA
mw = RBA::Application::instance.main_window
ly = RBA::Layout::new
ly.read("LABELS.gds")
cell_index = ly.cell_by_n…
Hello Matthias,
Thank you for your continued help. I am posting some example code, but it is for a different issue now. It is the name of the call for inserting a hole in a polygon. I was pretty sure that this would be correct, but it isn't:
cell.s…