Batch save of cells

edited March 2013 in General

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)

  puts "Writing #{fn} ..."
  ly.write(fn, gzip, opt)


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.


Sign In or Register to comment.