Change location of a specific layer as Edit/layout/move by does

edited October 2015 in Ruby Scripting
Hello,
I am using ruby scripting to posprocess someof my GDS files. One of the requirements is to shift the position of an specific layer, similar as Edit/layout/move by does, but for a specific layer. I have no idea if it is possible due I have basic knowledge of ruby. Thanks for your time

cheers,
Alonso

Comments

  • edited October 2015

    Hi Alonso,

    I don't know the nature of your postprocessing. But you might consider using the DRC feature for that purpose: a DRC script can be used to process layout tool.

    Within the DRC feature, you can move a layer using the "move" method: http://www.klayout.de/doc/about/drc_ref_layer.html#h2-687.

    In general, the DRC framework is easier to use than pure Ruby scripts and offers some powerful features wrapped in a simply syntax.

    Matthias

  • edited November -1
    Hi Matthias,
    DRC does perfectly for what I wanted to do. Thanks a lot for a fast answer.

    Alonso
Sign In or Register to comment.