It looks like you're new here. If you want to get involved, click one of these buttons!
Hi @Matthias,
For Gerber(PCB) format file import, we do File - Import - Gerber PCB, and all the setups are manual. We need to create layer by layer, and map file one by one. Is there a way to automate/script this with a predefined config? We have multiple Gerber databases to load, and we cannot finish the loading just by manually do that.
One of my thinking is to load each of Gerber layer to a gds file, like Layer1.gbr -> layer1.gds, and then use pya to merge all the gds files. However, we cannot do something like pya.Layout().read("Layer1.gbr") into Klayout.
Could you please help with a way to use python/Ruby to read in a Gerber/PCB format file? Thank you!
Comments
The Gerber Import feature does not have a full API, so the only way I see is to generate different ".pcb" project files (which are simple XML) and use them to convert the layers.
This is something you can do outside the application with any kind of scripting language of your choice, provided it can write XML files.
Matthias