It looks like you're new here. If you want to get involved, click one of these buttons!
Hi Matthias,
I am currently using the following code piece to convert all cells in a layout to static but it seems like it does not work properly. Do you think I am making a mistake in somewhere? I am trying to get the same effect as when I click Edit->Layout->Convert All Cells to Static.
Here is the code I use:
""""""
for cell in layout.each_cell():
layout.convert_cell_to_static(cell.cell_index())
"""""""
Thanks!
Comments
Hello,
The "convert_cell_to_static" method does not replace the cell - it will rather create a new, equivalent one. In order to replace all cells, you have first to create the static versions, then translate the instances and finally delete the original PCell variants:
Regards,
Matthias
Thank you Matthias!