just checking: there's no way to snap component positions to say 0.1mm grid in KiCAD 8.x pcbnew, right? (kicad-action-tools is supposedly incompatible). i often get components that have coordinates like X 119.685. i want to cut off those decimals. how, except for mind-numbing manual work?
@mntmn I just set a grid, then hover over whatever I want as origin in the footprint and press M to move, then it will snap that shape in the footprint to the grid while moving.
@mntmn you will still keep the fractional part in the footprint position if the pad you're hovering over isn't in the origin of the footprint, so it depends on the footprint.
this issue comes from the algorithm that places the parts when they're initially created via "update pcb from schematic". it likes to pollute everything with random decimal digits that are hard to get rid of
@mntmn@martijnbraam i think what martijn is pointing out is that the position of the object at the end of the move depends on where the mouse cursor was when you started moving make sure your cursor is somewhere near a pad you want to end up aligned on a grid when you press "m" and start moving
@mntmn@martijnbraam then we're having a collective hallucination or some sort of a misunderstanding. for me, the pad the mouse was over when i started moving is most certainly what ends up aligned with the grid even if the footprint's (0,0) does not i don't remember it always being that way, but in 7.x and 8.x it seems to be the case
(or maybe there's a configuration knob some of us have flipped?)
@martijnbraam@mntmn I might be misunderstanding you, but just if you don't know, Kicad lets you grab both the footprint origin/center and a pad and position the whole footprint based on which part you grabbed to move it. So if you grab the pad and place that in (10,10), the component center/origin will look off if that pad isn't an even fraction of a mm away from the origin. I think you can tell from the highlight when you're moving. It's not obvious at all.
@martijnbraam@niklasnisbeth bizarre. for me, clicking and dragging and M behave the same. if i hold control while moving, it stops moving in grid increments (moves freely)
@mntmn@niklasnisbeth It does the same thing on my linux box. I don't remember ever changing any settings for it and I've nuked my kicad config last week on linux anyway. I get your behavior when I click-and-drag a footprint though. It took me a bit to realize that using M and not clicking has completely different semantics
@martijnbraam@mntmn Eh, I'm doing it right now! On Linux. I couldn't say about Windows, I've only ever really used it to play Half-Life 2 - when it was new...
@martijnbraam@niklasnisbeth ok, moving my .config/kicad away changes the behavior! but pointer warping is on by default which doesn't work with wayland
@mntmn@niklasnisbeth@martijnbraam Tested with KiCAD 8.0.2 on Ubuntu. Works as @niklasnisbeth describes. Grab component center, then it will be aligned to the grid. Grab a pad, pad center will be aligned to the grid, so component center will not, especially if pin pitch of the component is in inches/mils.
@martijnbraam@niklasnisbeth and that's the issue. disabling "Warp mouse to origin of moved object", which i have to do on wayland, breaks the grid snapping!!
@martijnbraam@niklasnisbeth what happens if you turn off Editing -> "Warp mouse to origin of moved object" in Common preferences? This causes the issue for me