Hi matthias
what your doing is awesome.
I am having problems run the code you provided. Is open_layout a valid method because when I run your code I get and error message "undefined method `open_layout' for #". Also when I look at the do…
So I swore the code above worked last week. Now i get an error when I try calling the code above with '-r' or '-z -r'.
The error I get is 'Internal error: c:\klayout\0.24\src\dbInstances.h:1761 is_editable () was not true in Layout::flatten'.
Why …
Thanks for the explanation Matthias.
I commented out the "RBA::Application.instance.exec" and it works for -z but still does not work when using -zz or -b.
module MyMacro include RBA #RBA::Application.instance.exec layout = RBA::Layou…
Nevermind my fault the code works fine. I was not calling the script from the command line correctly in my program. So when the script didn't have dataType as a command line argument it just assigned it a zero.
Sorry about creating this discussion …
Ok that makes sense and gives good reason to have multiple different methods. Should this code below work with ICplxTrans.
module MyMacro # Program opens a layout and adds a Serial number with given layer,dataType and magnification include RBA i…
Yeah anything I post on a forum is fair game. Also note i accidentally left a useless line "rotation = $rotation" above. It does nothing because i reference $rotation later instead of rotation.
The code below works when using trans.
# Create a PCell variant cell pcell_var = ly.add_pcell_variant(lib, pcell_decl.id, pv) t = RBA::Trans::new(RBA::Trans::r90,false, 10.0, 20.0) #Get top cell ly.top_cells.each { |curCell| pcell_inst …
Thanks for help. I ended up using this script to add a serial number to each device and change the name of the top cell. Then i use another script to merge all the files together. I am new to klayout and ruby so this might have a few bugs still.
mo…
Thanks guys. This is what i ended up using.
module MyMacro #klayout_app.exe -b -r mergeFiles.lym -rd files=firstFile.gds,seconldFile.gds,thirdFile.gds -rd outputFile=my_layout4.gds -rd X_cord=0,30000,60000 -rd Y_cord=0,0,0#Each file should hav…
Thank you sir. That fixed it. How do you post code like you do? I tried <code> </code> like some other forums but that did not work.
Thanks again,
Keil
This is what I got so far. I insert a PCell Text into the current layout getting coordinates from a text file.
The coordinates are just from a simple delimited text file.
TEXT1,0,0.00,r270,
TEXT2,5.00,10.00,r0,
What i cant figure out is how to run…
David,
Nice idea with the keys. I am not starting on this project right away but will post back if i decide to make some custom scripts around this idea.
Keil
It works but I have multiple devices per mask. Each device has a different SN that needs incremented and each device is of different size. I am new to Klayout and VLSI in general but I was thinking of each device to have a temporary SN that I could …