Note: RenumKiCadPCB has been updated several times to enhance usability and fix bugs. Please check documenteddesigns.com for the most recent version.
This RenumKiCadPCB.V0103 is an updated version of RenumberKiCadPCB. Earlier today I posted v0.102 and 0.103 updates net names to correct some (but not all) issues associated with netlist imports and pours.
Since I take a second pass on the file to update nets it takes about 100mSecs longer.
Thanks to Andy_P at https://forum.kicad.info/ who tested the program and correctly identified that it did not handle hierarchical sheets.
The program has been extensively rewritten to support hierarchies and (I believe) “channels” or the same sheet repeated with different reference designators.
I also added the option to -c output a change list and leave the files alone and a -y option so you don’t have to type Y/N to run the program.
Thanks also to PCB_Wiz on https://forum.kicad.info/ who graciously proved a link to this project https://github.com/FPGAwars/icezum/tree/master/src-kicad (which is a beautiful project by the way).
After running V0.101 on PCB_Wiz’s icezum project, it seems to work fine. There is an issue if I then create a schematic netlist from the updated files and import that into PCBNew and run the DRC. One netlist is flagged no connects even though they appear to be connected. The name of the problem net is neither in the original (pre-run) PCB file or the post run file.
I lack the KiCad skills to determine if this is a problem with my code or the way the original files were made (I have had KiCad complain about files it alone had made)
It appears to be easy enough to correct but the project is too complex for me to understand. Note that this only occurs if you recreate the netlist.
If anybody has a similar problem and can reproduce it on a minimal project I can probably fix the code if there is a bug.
Please let me know if there are any issues.