Realign component to grid in Eagle?

Go To Last Post
10 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Suppose you have a bunch of components that were added to the schematic while the board editor's grid was set to some offbeat value you used to nudge something earlier. Is there any way (short of deleting the components and re-placing them on the schematic after putting the grid back to its desired values) to tell Eagle, "Align the components I just grouped so their individual center points fall precisely on the nearest grid point to their current (slightly wrong) locations?"

There's no place like ~/

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know a simple command, but when I did this I had the odd components on .11 rather than .1 so I reset the grid to .01 and moved each component .01 to the correct location, then reset the grid back to .1.

Smiley

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I've also done it the way Smiley mentioned however, keep in mind that you can select all of the components with the group command and then move them all at once.

Dave

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After posting the above, I decided to try an experiment. I was able to move a group to the desired location using the following approach:

1) Select all of the components to be moved with the group command.

2) Click on the move icon and, with the control button pressed, right click on the group. This will select the group about an "origin".

3) Note the X & Y values of the origin in the coordinates box in the upper lefthand corner above the layout.

4) Determine new coordinates by adding the desired displacement to the X & Y values from step 3. In the entry window, enter the values as (X Y) and press the enter key.

I did the above on about a dozen components and was able to move the group to a new location this way.

Dave

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I think snap-on-grid-sch.ulp is what you are looking for.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

OK, I think I found the answer: ctrl-click appears to center the clicked object's center mark on the nearest grid intersection point. :-)

There's no place like ~/

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Oops, you're working with the board, not the schematics.
But I'm sure I remember using an ULP for that task, just don't remember it's name or where I got it. Looking through the Cadsoft download section doesn't ring any bells either.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

miamicanes wrote:
OK, I think I found the answer: ctrl-click appears to center the clicked object's center mark on the nearest grid intersection point. :-)

This works great, thanks for the tip. So you need to hold the control key before clicking a component. By doing so, the component will be aligned to the grid. Perfect!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Since this thread just won't die (and google brought me here for this exact issue):

 

There's a board ULP that will do this for you:

 

cmd-snap-board.ulp

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

radhoo wrote:
miamicanes wrote:
OK, I think I found the answer: ctrl-click appears to center the clicked object's center mark on the nearest grid intersection point. :-)

This works great, thanks for the tip. So you need to hold the control key before clicking a component. By doing so, the component will be aligned to the grid. Perfect!

Great! Very useful tip. Usually I enter same Y or X to align components to a grid. This info will save my time. Thank you!