I'm loading multiple GDS files in the same panel (for an overlay view) with a layer property file using the following command:
KLayout.exe -s file1.gds file2.gds -l layerfile.lyp
In the KLayout layer properties window, my properties are repeating twice, once for each GDS file. This is a bit confusing specialy when file1 and 2 are different drawing of a same GDS#.
My question is, is it possible to load a layer property file for each layout or GDS file I load? This way I could uniquely identify all my layers through the <name> parameter of the .lyp file.
Thanks for your help.
Louis
Comments
I wonder if the parameter <source> in the .lyp file could be the solution to my problem; can <source> link its section definition to different layout GDS files? What is the meaning of the single digit after the @ sign in the .lyp file?
Hi Louis,
A .lyp file can actually hold painting styles for multiple layouts as well.
Your observation is correct that the "source" parameter contains an additional specification from which layout the layer which is painted should be taken from.
Let me explain that in more detail: Usually a .lyp file will contain painting styles for a single layout. In that case, the source specifications for GDS layers look like "l/d@1", where "l" is the layer number and "d" is the datatype number. "@1" specifies that the information shall be taken from the first layout loaded.
When multiple layouts are loaded into a single view, such a .lyp file will be applied to all layouts individually.
But a .lyp file may also contain definitions for more than one layout. In that case, some layers will contain source specifications of the form "l/d@2" etc. The "@2" specifies that the information shall be taken from the second layout and so on.
Such a multi-layout .lyp file will be applied just once and to the corresponding layouts. You can create such a .lyp file by loading two layouts, settings the styles properly and saving the result to a .lyp file.
Regards,
Matthias