It looks like you're new here. If you want to get involved, click one of these buttons!
Hello,
Klayout menu shown in the following figure allows the user to resolve arrays in order to modify one or more instances.
Is there any equivalent function in the Python API to be used within scripts?
Thank you.
Regards,
Ahmed
Comments
Might want to look at this
https://www.klayout.de/doc/manual/create_variants.html
Thank you @tagger5896.
The issue is that all these actions could be done via Klayout Gui. I was asking if it is possible to do it within a python script.
Regards,
Hi ahmedo,
you may try : instance.explode()
Signature: void explode
Description: Explodes the instance array
This method does nothing if the instance was not an array before. The instance object will point to the first instance of the array afterwards.
Hi @wishalpha
Thank you very much for your help.
The function explode() (instance.explode()) that you pointed me to allowed me to resolve an instance array to remove the instances inside an exclusion area.
For information, this function makes all the instances of the array single (No more array).
Regards,