the following copied from
https://electronics.stackexchange.com/questions/266472/move-to-absolute-position-in-eagle-cad
Understand that in EAGLE there's a strong correlation between CLI arguments and mouse clicks. Essentially you can think of CLI arguments as coordinates of mouse clicks. So using the mouse, MOVE is a two click operation: (a) pick up the object, (b) put it down.
MOVE command on CLI is the same way: first arg is the location of mouse click, second arg is the destination click.
So let's look at your command strings:
- mov
- click the part
- mov (0 0)
- the part returns to where it was before it was clicked
This is invalid because the "mov (0,0)" starts a new move command without finishing the first.
- mov
- click the part
- (0 0)
- the place on the part that was clicked is now at the origin
This is the expected result for that sequence: it's the same as Move, Click part, then click at origin.
So what is the proper way? Let's say you have an SMD centered at (1,1) and you want to move it to (3,3) (yes I know this is easy with grid but I'm keeping the numbers simple). You can just do
First arg simulates a click at 1,1 which is the part origin and then you're moving it to desired location.
What if you don't know the proper origin? Use C before the first param, to simulate control-click, and then type a location near the part:
What about groups? This is a VERY HELPFUL trick. Often I end up with a bunch of SMD pads that are in the right places relative to one another but I want to move the entire line of them to a new location. In the GUI you'd do this with right-click. Use the same concept as "C" above, except use ">" to indicate right click.
So I have a group of pads which are all at Y = 2.65 and I want them to go to Y = 1.9. Instead of trying to mess with grid and all that, I just calculate I want them to move down by 0.75 units. So, assuming it's a bunch of pads centered at (0, 2.65), I will:
- .. group the pads with the mouse ..
- move (>0 2.65) (0 1.9)
What if I'm lazy about group centers? Neat thing about right-click is, since you can only have one group at a time, it'll automatically grab the group no matter where you click. So you can just fake the first click at the origin 0,0 and then enter a relative location, which will achieve the same effect: if I want to move it down 0.75 I can do
- .. group the pads with the mouse ..
- move (>0 0) (0 -0.75)
Took me a while to figure that out since it was buried in the "help move" text. There are very few things in EAGLE which I've found impossible to do by CLI, it's just not always obvious or well documented.