Do you know is there way how to check the list of mask layers which are contained in some gds file. The check must be run in Linux environment?
what about streaming in the file into a dummy-library and checking the log- and summary-files?
strmin -library MYDUMMLIB -strmFile filetocheck.gds2 -summaryFile ./gds2streamsummary01.txt
If your library defines all possible GDS2-layers and -datatypes, you should find all informationsin the summary-file;
If no layer at all is defined in your library, you should get all informations as warnings in the strmIn.log,and for everything inbetween, you'd have to check both files to get the complete information.
Besides of Cadence, you could create a small Perl-Script using the GDS2-module or youcould perhaps use a scriptable GDS2-viewer to do the job.
I will try to create script to do task. Beacuse actually the application must be started by person who only needs the list of used layers, he will not be familiar with the actual layout.
obviously it's a bit more complicated, when i used a target-library withoutany layer-definitions, strmin started to add new layers to the library, accordingto the statements in the logfile;
this means in every case you'll have to check the contents of the logfile as wellas the stream-in-summary and combine them into a summary of your gds2-file;
as long as your inputfile is not too large, perl assisted by the GDS2-module might bethe easiest solution on a Linux-system..
I already downloaded the tar.gz files in GDS2-module, and will check it. If it is suitable for may issue, I will notify you.
...in the meantime we're somewhat off-topic in a Cadence-forum.
The GDS2-module from CPAN comes with some examples, one of them is "gdslayers".
If you don't run into performance-issues due to the size of your gds2-file, this example
might be a ready-to-use solution for your needs...