Align vertically with top and bottom locked

I hereby certify that I am not simply asking someone else to design a footprint for me.

This is an auto-generated message that is in place on the “footprints” section of the KiCad.info forum. If I remove it and ask for a footprint to be designed anyway, I understand that I will be subject to forum members telling me to go design my own footprint or referring me to a 3rd party footprint site.

I’m trying to evenly distribute a set of pads vertically in KiCad while keeping the topmost (Pad 13) and bottommost (Pad 3) pads fixed in their current positions. However, when I use the “Distribute Vertically” feature, the bottom pad (Pad 3) stays in place, but the top pad (Pad 13) is shifted down, and the rest of the pads are distributed incorrectly.

Here are the steps I followed:

  1. I positioned Pad 13 and Pad 3 manually in their desired locations.

  2. I selected all the pads and used Align/Distribute > Distribute Vertically.

Expected Result:

  • Pad 13 and Pad 3 should stay in their current positions, and the rest of the pads should be spaced evenly between them.

Actual Result:

  • Pad 13 was moved closer to Pad 3, and the rest of the pads were distributed between the new positions of Pad 13 and Pad 3.

  1. Before Alignment (left image): Pads 13 and 3 are in their desired positions, and the others are misaligned.
  2. After Alignment (right image): Pad 3 remains stationary, but Pad 13 is moved, which is not the intended result.

I can’t seem to figure out how to fix the positions of the top and bottom pads while distributing the others. Does anyone know how to achieve this correctly in KiCad?

Thanks for your help!

It should work as you expected. Please copy your KiCad version from Help - About - Copy version info and paste it here.

Application: KiCad x64 on x64

Version: 8.0.6, release build

Libraries:
wxWidgets 3.2.6
FreeType 2.13.2
HarfBuzz 9.0.0
FontConfig 2.14.2
libcurl/8.8.0-DEV Schannel zlib/1.3.1

Platform: Windows 11 (build 22631), 64-bit edition, 64 bit, Little endian, wxMSW
OpenGL: ATI Technologies Inc., AMD Radeon™ Graphics, 4.6.14761 Compatibility Profile Context 21.30.02.14 30.0.13002.14003

Build Info:
Date: Oct 14 2024 01:02:33
wxWidgets: 3.2.6 (wchar_t,wx containers)
Boost: 1.85.0
OCC: 7.8.1
Curl: 8.8.0-DEV
ngspice: 43
Compiler: Visual C++ 1939 without C++ ABI

Build settings:

This function works perfectly for me, but I’m not using Windows and I’m using 8.0.7-rc1
I selected all the pads including 3 and 13.
RMButton click > Align/Distribute > Distribute Vertically.

@dendanne1
There is also another function you can use if you know the required distance between each pad. This is the Array Tool.
Two lines down from “Align/Distribute” is “Create from Selection” > “Create Array.”

Application: KiCad Footprint Editor x86_64 on x86_64

Version: 8.0.7-rc1-202411251622~6e6d3e9b03~ubuntu22.04.1, release build

Libraries:
wxWidgets 3.2.1
FreeType 2.11.1
HarfBuzz 2.7.4
FontConfig 2.13.1
libcurl/7.81.0 OpenSSL/3.0.2 zlib/1.2.11 brotli/1.0.9 zstd/1.4.8 libidn2/2.3.2 libpsl/0.21.0 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.18

Platform: Linux Mint 21.3, 64 bit, Little endian, wxGTK, X11, cinnamon, x11
OpenGL: Mesa, NV106, 4.3 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2

Build Info:
Date: Nov 25 2024 16:22:48
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.74.0
OCC: 7.6.3
Curl: 7.81.0
ngspice: 43
Compiler: GCC 11.4.0 with C++ ABI 1016

Build settings:

I’m on Windows 10 and also Version: 8.0.6, release build, I can’t replicate your issue, sorry.


I also could not replicate the (presumed) bug. Maybe it has something to do with your footprint. Can you upload the footprint (from before the pad align)?

Another option is to simply delete de pads and draw a new array of pads.
Yet another option is to work with the footprint wizards in KiCad.

1 Like

Paul is always there with the best answer: FOOTPRINT WIZARD