layer = layout.layer(layer_info[0], layer_info[1]) text = textGen.text(string, dbu) trans = db.DCplxTrans(db.DTrans(3, False, coord_info[0]-5, coord_info[1]+5), 10) #coord_info is a list which c
Hence I don't recommend this mode in your specific case. In the UI you can use "File/Import Other Files into current" to merge in a smarter way (hierarchy mapping). In a script, the
have been made too allow any layer too be used for the "Mask"#Functionality is the same but you can use any "Dummy" layer as the "Mask" layer#Sel
If you don't know how many layers you actually will have, you can add a wildcard entry to the .lyp file which essentially is equivalent to "add_missing_layers". See here for a discus
To overcome the issue, the solution is to load the second layout into a separate pya.Layout object and transfer the cells from there into the first layout using "Cell#copy_tree". You
well, that's actually harder than it looks. There is a forum entry where I explain the topic: https://www.klayout.de/forum/discussion/comment/6738#Comment_6738