RenumKicadPCB V0.202

Note: RenumKiCadPCB has been updated several times to enhance usability and fix bugs. Please check for the most recent version.


This RenumKiCadPCBV0202 is the updated Windows 64 application and source code for V0.202 of RenumKiCadPCB.

I moved sorting from the confusing “jog” implementation to a grid based implementation. All module and ref designation locations are rounded to the nearest specified grid point (X, Y) prior to sorting. So a module at 23.1235, 19.568 would be sorted as 23.25, 19.50 if the grid is specified as 0.25.

Note that this does not actually move modules or text: RenumKiCadPCB only changes the names of things not their positions.

Also the “Sort on” default has been changed to “Sort on Modules” based on feedback I received from Nick Barton of Black Magic Amplifiers.

Although I usually sort by Reference Designations, Nick – who is a pro – believes “Sort on Modules” is a far more typical use case.

As always, you can change the “Sort on” parameter from the menu and since V0.201 these choices are “sticky” and saved for the next use.

Note that, unless reference designations, module coordinates are somewhat arbitrary and this may lead to strange results. For example if a diode has the cathode as the origin, two diodes side by side with one rotated (see below)


would be seen as separated by 1 cm (1/2″) on the Y axis whereas the reference designation text would be “on grid” and properly dealt with.

Dealing with “Bad” Renumbering

While there may be bugs in the code (please contact me directly if there are) most reports of “bad” renumbering are due to two reasons:

  1. Sorting of reference designations instead of modules or modules instead of reference designations; and
  2. Sorting of too fine a grid (or jog in older versions).

RenumKiCad PCB approaches the problem mathematically and if you have placed parts or reference designations 1 mm apart on the sort axis and the sort grid (or jog) is less than 1 mm it will see the parts as being on different lines and number them accordingly.

Remember – the software doesn’t know if you have done a coarse through hole design on a 2.54 mm (0.1″) grid or an ultra-fine pitch layout with 0.1 mm (0.005″) grid, nor does it know whether you have your module origins all in the “right place”.

The options to sort on modules or reference designation and to change the grid are there to provide flexibility.

So if you get a “bad” sort order, try changing the sort target from modules to reference designations and/or adjust the sort grid.

Usually increasing the sort grid fixes things up to a point as making it too large has the opposite effect as all parts will appear to be at the same point.

So try increasing it to 0.25, 0.5, or 1 until you get the desired result. Because the sort works on the original data you can simply run RenumKiCadPCB over and over again on your design until you get what you want.

Always make backups of the original.

I don’t know of any bugs which would ruin your project but I am not responsible – or even want to feel bad – if it does.

The only way I can improve this software is if you provide feedback. Please let me know if you use it and, especially if there are any issues.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: