It looks like you're new here. If you want to get involved, click one of these buttons!
It will work only when I output layer then read in, how could I make it work without create new layer?
darkpattern.or(outp).merged.output(93,300)
darkshape=input(93,300)
layoutView = RBA::Application::instance.main_window.current_view.active_cellview.layout
layout = RBA::CellView.active.layout
eachcells = layout.each_cell
darkSMEErename="Dark_SMEE_rename" 
  if !layoutView.has_cell?(darkSMEErename) then
  layoutView.create_cell(darkSMEErename)
  cell(darkSMEErename)
  dark = layout.layer(93,0)
  top = layout.cell(darkSMEErename)
  darkshape.data.each do |pp|
  top.shapes(dark).insert( RBA::Polygon::new(pp))
  placeme = source.layout.cell(darkSMEErename) 
  source.cell_obj.insert(RBA::CellInstArray::new(placeme.cell_index, RBA::Trans::new(0,0)))
  end
  end
                
Comments
Hi illyjustfine
@illyjustfine try this code.
I took the liberty to edit the discussion entries, so the code is formatted properly.
@illyjustfine You have to use Markdown notation (a line with triple backticks before and after the code). Same as GitHub uses for example.