Skip to content

Magnetic points: Snap via to object or snap object to via is not working

Description

In this special use case I need to place an alignment hole in the center of 2 points. So I drew a line from one to the other and wanted to use the line's magnetic center point to snap a via/hole to it. But I only get this result, when the via is placed and after I move it with the "M" command and get it to snap(like someone gave as solution in the related issue). But it must be possible to snap the via right away. The other way round, it must be possible to snap any item to a via/hole, regardless if upon placing or moving the item.

Steps to reproduce

  1. Select "Add vias" in PCB Editor and try to snap it to an off grid geometry or endpoint(i.e. end of a line) on any layer.
  2. Place a via offgrid and try to draw a new element (i.e. a line) starting from the center of the via.

KiCad Version

Application: KiCad x86_64 on x86_64

Version: 8.0.3, release build

Libraries:
	wxWidgets 3.2.4
	FreeType 2.11.1
	HarfBuzz 8.3.0
	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.2 (+libidn2/2.3.2) libssh/0.9.6/openssl/zlib nghttp2/1.43.0 librtmp/2.3 OpenLDAP/2.5.17

Platform: Ubuntu Core 22, 64 bit, Little endian, wxGTK, X11, gnome, x11
OpenGL: Intel, Mesa Intel(R) Graphics (RPL-P), 4.6 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2

Build Info:
	Date: Jun 28 2024 00:06:25
	wxWidgets: 3.2.4 (wchar_t,wx containers) GTK+ 3.24
	Boost: 1.74.0
	OCC: 7.5.1
	Curl: 7.81.0
	ngspice: 36
	Compiler: GCC 11.2.0 with C++ ABI 1016

Build settings:
	KICAD_USE_EGL=ON