Within the collaboration of the KiCad OpenVentilator Group http://openventilator.gitlab.io/, I developed a Python script to convert Zuken CR-5000 (ASCII) PCB files to KiCad.
I programmed this in a rush, so it has some amount of hacks, but it is general enough so that 5 original Zuken boards were succesfully converted, and I was able to reproduce complex padstacks with copper removed on some inner layers, so that the Gerbers match faithfully the originals.
In case someone wants to give it a try for his projects or reuse it, it is available as open-source in this repo:
Note: if i were to reprogram it again from scratch, I would not do the intermediate conversion to JSON, that made more trouble than anything, but anyway…
Nice,
it would be useful to have a repository with only the script needed to make the conversion.
Then it could be easily converted to a kicad action script or even converted to cpp to be integrated to main code.
I think the problem right now is that KiCad does not support padstacks, while Zuken relies heavily on them. So I think it is not worth for the moment to reprogram the script again, before KiCad support full padstacks. For these 5 boards, I managed some workarounds / hacks to make it match the original padstacks, but that required a lot of extra lines of code.
Ideally, KiCad should also support round track segments (instead of many small straight segments). That would also save many lines of code xD.
KiCad nightlies already support arc traces, and my Altium importer uses them fairly successful.
For missing padstack, yep, this thing is holding back my importer as well, and I did not write a workaround yet. Perhaps it will be integrated into KiCad 6 when someone stands up, otherwise we need to wait until KiCad 7.
arc in polygons are not supported yet to my knowledge. But I suspect they are part of the KiCad 6 plan (if not, @devs please add them). Perhaps, if everything fails, I add them myself. Better than adding a workaround into the importer.
It seems SHAPE_LINE_CHAIN already supports arcs, but I never tried them out.
It’s interesting that people talk about polygons with arc shaped edges. That’s impossible by definition - polygon has straight edges. I don’t mind, though.
Haha, I meant we have to change KiCad “closed shape” is a bit awkward. Altium uses “solid region” (kind of equivalent to KiCad graphical polygon, but can be copper too) and “polygon” (KiCad zone) – yes they say polygon even though theirs do support arcs.