It looks like you're new here. If you want to get involved, click one of these buttons!
Hello all,
I try to put an if condition in my XSection script and it works quite good. Is it possible to check within this condition if a special layer exists? I don't get this working for me.
Thanks!
BR, johannes
Comments
Maybe ... but "existance" of a layer is not a well-defined concept in GDS and OASIS. A layer does not exist if there is nothing drawn on it. So if you think of a technology option, that is not the right way to do that. A layout may be drawn without that layer, still it may want to use that tech option.
Better include a boolean flag that you set externally.
You can create a
core.xs
file that implements all options with if's, like this:and you create a top-level
no_flash.xs
file like this:and a similar file (`flash.xs') for the flash option:
So by running "no_flash.xs" you get the "no flash" option, with "flash.xs" you get the "flash" option.
Matthias
Thank you very much for the detailed description. I will try this approach.
Johannes
Hi,
Here is an example which works for me. Not an exact if-condition but could be useful.
Grandement
@Grandement Thank you for sharing this!
Matthias