move mouse pointer exactly on top of the known pin (in your case probably pin 34?)
start LMB-click drag the footprint. the pin below the cursor should be used as movement grabbing point
drag pin/footprint to the “another location” - normally there should be a snapping circle displayed so the FP/pin snaps exactly to the center of the your purple circle
use command “move exactly” to set the x/y-distance (the shown 1,23mm in your picture). To invoke “Move exactly” either use a hotkey or use the context menu (right-click)–>Positioning tools–>MOve exactly
For THT footprints typical is to have anchor at Pad1 so knowing pitch there is no problem to find offset for any other pad from footprint anchor (when you set the footprint position you set its anchor position).
Thanks for the suggestions, but none of them see to work well for me. The snap grid isn’t aligned with pin 34, so working out the precise location isn’t easy.
What I did do, was look at the footprint (editor) and figured out where the origin (0,0) is and the relationship to pin 34.
Then took the relative coordinates of pin34 back into the PCB editor and mapped it from the location of the pin header.
A little tedious, but I managed to get the required precision.
Precise moves are sometimes a bit difficult, especially when the correct snap points are missing.KiCad does have the Move Exactly, Move with Reference and Position Relative To … functions from the popup menu, and usually one of them gets the job done. You can also move the grid origin with PCB Editor / Place / Grid Origin or PCB Editor / Edit / grid Origin which can also help.
Together, these functions are “adequate”, but they still feel lacking in some way. I guess this can / should be improved, but I’m not exactly sure how (my mind is a bit fuzzy lately). If you think you have a good idea on this topic, then writing up a feature request and posting it on gitlab is a good option.
Position Interactively is likely the tool you need here:
Select the item(s) to move
Position Interactively...
Select the pad on the item to move
Select the pad on the reference item
In the dialog, enter what that offset should be
OK
Done
If you want to snap to pads, you should also ensure the pad snap mode in the preferences is “always”.
Some more Position Relative methods will be in v10 (for example, also allowing the normal ,Position Relative dialog to choose the source reference point, i.e. the pad on the moved item in this case) but they’re not done yet.
@johnbeard - that seemed promising, but the initial “click” location isn’t snapped to the pad (snap to pad is “always”). It’s only after the first click the pad snap becomes active.
It should work (I can’t test it right now, though). What is your active layer and what is your snap layer mode (Shift-S, either all layers or only active layer)?
Ok . . I think I misunderstood how this works . . clicking the pin header first, then selecting the mounting hole, I can then go back and select pin 34.
You can select the two things in either order, the only thing that will change is the sign of the vector’s x and y. You just need to make sure that the thing you want to move is what you selected at the start of the process, or it’ll move the other thing!
It’s functionally similar to selecting the item by the relevant point, moving with M, then placing that point on the other reference point, then moving the selection again with Move Exact and entering your offset.
For quick verification of relative offsets, there’s also the ruler tool.