Inspect / Show Board Statistics does not subtract holes form board area as expected.
KiCad has a checkbox for: Subtract holes from board area, and my expectation is this would subract all THT holes from the board area, but it ignores all THT holes, and also NPTH.
It does subtract if you draw a cutout rectangle on the Edge.Cuts layer.
This is also confirmed by BlackCoffee on the user forum (Using KiCad V7.0.11): https://forum.kicad.info/t/calculate-pcb-weight-or-surface-area/50541/4?u=paulvdh
Steps to reproduce:
- Draw a rectangular or square PCB (for example 100x100mm for easy calculation).
- Board area does not change when checking the Subrract holes from board Area checkbox for THT and NPTH.
I can see a few options here:
- Change the checkbox text to show it only tracks cutout area's.
- Change the code so all holes are subtracted.
- Add another checkbox for drilled / round holes.
KiCad Version
Application: KiCad PCB Editor x86_64 on x86_64
Version: 8.0.1-8.0.1-0~ubuntu20.04.1, release build
Libraries:
wxWidgets 3.2.2
FreeType 2.10.1
HarfBuzz 2.6.4
FontConfig 2.13.1
libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
Platform: Linux Mint 20.3, 64 bit, Little endian, wxGTK, X11, xfce, x11
Build Info:
Date: Mar 14 2024 15:11:44
wxWidgets: 3.2.1 (wchar_t,wx containers) GTK+ 3.24
Boost: 1.71.0
OCC: 7.6.3
Curl: 7.68.0
ngspice: 42
Compiler: GCC 9.4.0 with C++ ABI 1013
Build settings: