Adjust Cell Origin

edited June 2016 in Ruby Scripting
Hello,

Does somebody know whether it is possible to adjust the cell origin in a script.
I would like to use the function: Edit->Cell->Adjust Origin but in a Ruby script.
Thanks for your help.

Comments

  • edited November -1

    There is a similar script in TRT. Install TRT according to the instructions, and go to TRT Menu > Selection > Adjust Cell Origin.

    That script is based off http://klayout.de/forum/comments.php?DiscussionID=173 - scroll halfway down.

    As it says in the comments of that script, pasted below, this is not the exact same as Edit->Cell->Adjust origin. But at least it can be a starting point.

    ## NOTE: There is a similar function, Edit > Cell > Adjust origin. However 
    ## this script differs in that (A) it acts on the cells selected rather than 
    ## the current 'top' cell; (B) it allows for arbitrary x,y placement of the origin.
    
Sign In or Register to comment.