How to array a shape or region in python script?

Hello Klayouters,

Greetings! This is my first post hhh. I always use 'for' loop to generate an array of regions or shapes. Could you give me an example of how to use Trans to generate an array of box? Like this:

Thank you so much!



  • Using python

  • Hi Jin,

    You need to create two cells: one main cell and a child cell. In the child cell you place a single rectangle. Then you create a CellInstArray instance with the child's cell cell_index and the vectors and dimensions of the array and insert this into the main cell.

    Without instances, you can only code a loop to place the shapes.


  • Thank you Matthias, problem solved

Sign In or Register to comment.