It looks like you're new here. If you want to get involved, click one of these buttons!
I was asked how to save multiple cells in batch mode.
Here's a short script:
ly = RBA::Application::instance.main_window.current_view.active_cellview.layout
cells = [ "TOP", "TEXT", "TEXT$1", "TEXT$2" ]
cells.each do |c|
cell = ly.cell_by_name(c)
fn = c + ".gds"
opt = RBA::SaveLayoutOptions::new
gzip = opt.set_format_from_filename(fn)
opt.add_cell(cell)
puts "Writing #{fn} ..."
ly.write(fn, gzip, opt)
end
This example saves the specified cells of the current layout to files with the name ".gds". The cells are written including their hierarchy below to given cell.
Matthias