It looks like you're new here. If you want to get involved, click one of these buttons!
I want to combine several gds-files into one layout.
During reading I want preserve the layer/datatype structure of each file by adding a offset to the layer number via a LayerMap.
A very simplified example is:
module MyMacro include RBA $mw = Application::instance.main_window t_ly = $mw.create_layout(1).layout t_ly_view = $mw.current_view t_ly.dbu = 0.001 lo = RBA::LoadLayoutOptions::new lo.layer_map.map("*/* : *+10/*", 0) t_ly.read("c1.GDS", lo); t_ly_view.add_missing_layers lo.layer_map.map("*/* : *+50/*", 100) t_ly.read("c2.GDS", lo) t_ly_view.add_missing_layers end
The structures of c1 are mapped fine.
However all layers from the second file are mapped only, if the logical layer number in the second map line (100 in this example) is bigger as the number of the already created layers/datatype pairs by add_missing_layers.
How can I determine this number (of the first free logical layer)?
I found that if I use
"*/* : */*" for the first mapping (== no offset), the second mapping does not work anymore.
Is there an example how to group layers via script?
(I want group all layers with the same layer number, but a different datatype.)