Skip to content

Add a warning: Track size limited by design rule

Description

If the user selects a track size that is less than the minimum track size, the track size is automatically changed to the minimum.

I understand this behaviour, but I spent way too much time trying to understand why my track was 0.2 mm when asking for a 0.16 mm.

Suggestion:

  • When trying to add a track whose size is less than the minimum, warn the user ( not with a popup ) :

"The selected track size conflicts with the design rules."

Steps to reproduce

-open pcbnew

-Board Setup -> Pre-defined sizes

-Create a new track width ( 0.01 mm for instance )

-Click ok

-Using this button image, select the 0.01mm

-Draw a track

-The track is ( certainly, depends on the default value ) 0.2mm

KiCad Version

Application: KiCad PCB Editor

Version: (5.99.0-11247-g3f6811f413), release build

Libraries:
	wxWidgets 3.0.5
	libcurl/7.77.0 OpenSSL/1.1.1k zlib/1.2.11 zstd/1.5.0 libidn2/2.3.1 libpsl/0.21.1 (+libidn2/2.3.0) libssh2/1.9.0 nghttp2/1.43.0

Platform: Linux 5.12.9-1-MANJARO x86_64, 64 bit, Little endian, wxGTK, KDE, x11

Build Info:
	Date: Jul  3 2021 06:17:10
	wxWidgets: 3.0.5 (wchar_t,wx containers,compatible with 2.8) GTK+ 3.24
	Boost: 1.75.0
	OCC: 7.5.0
	Curl: 7.77.0
	ngspice: 34
	Compiler: GCC 11.1.0 with C++ ABI 1016

Build settings:
	KICAD_USE_OCC=ON
	KICAD_SPICE=ON