Finding the parameters of a pcell by code

edited August 2017 in General
I want to know how can I know all the parameters like position, rotation and mirror of a pcell in a gds file from the code in ruby.



  • edited August 2017

    Hi Amar,

    the standard properties are accessible through Instance#trans or (more general) Instance#cplx_trans. The properties deliver transformation objects that you can ask for rotation angle, displacement vector, magnification etc.

    Can you give an example of your code?


  • edited August 2017
    Hi Matthias,
    Thanks for the help. I was able to figure this out. I just had to use
    inst.trans.disp.x -> for getting x position
    inst.trans.disp.y -> for getting y position
    inst.trans.angle -> for getting angle

    where inst is an instance in the parent cell.

Sign In or Register to comment.