How to get the transfom of each instance to its refered cell


I have a layout with such hierarchy. How can I get the transfom of each instance to its refered cell(e.g. K01, K02) in python script?

Comments

  • Hi,

    It depends on whether you already have the Instance object or just the referred Cell.

    1. If you have the instance, simply use [d]trans or dcplx_trans.
    2. If you need to "backtrack" from the cell (e.g., K01), use each_parent_inst to find its parents first.




    Is one of these what you are looking for?

    In case 2, you can find an application of each_parent_inst at https://www.klayout.de/forum/discussion/2568.

Sign In or Register to comment.