It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Matthias,
I would like to first thank your for this excellent software.
Here is a quick question, I would like to load several gds files into the same panel with Ruby,
I tried the following but it did not do want I want, I think it only loads the last one,
and the previous ones are lost, please help, Thank you!
"Open in the same panel" would do exactly what I wanted, I just don't know the ruby script for it
layout_filename = RBA::FileDialog::get_open_file_name("Title", ".", "Layout files (*.*)").to_s
mw = RBA::Application::instance.main_window
mw.load_layout(layout_filename, 0)
Best,
Niebieski
Comments
Hi,
thank you :-)
The answer to the question is acually quite simple: instead of "0", just use "2" for the second parameter of load_layout. Here is the explanation:
http://klayout.de/doc/code/class_MainWindow.html#method134
Matthias
That is it!!
I thought it was a true/false option and tried both 0 and 1
I did not expect it will take 2 and I missed the explanation in the documents.
My bad :P
Niebieski