SparkFun Forums 

Where electronics enthusiasts find answers.

Questions relating to designing PCBs
By opolychr
#155875
Hello there!

This is my first post in this beloved forum. I hope there will be next ones too!

I am working on a PCB project in Eagle and among many other things (working in the PCB design window) I would like to align a group of objects into the grid.

I know how this works in case of a single component (select MOVE and Ctrl+LeftMouse on the component origin) but I have no clue on how to make it work in case of a Group of components.

It could be convenient for me, also, if the solution included a typed command.

Thanks
Orestis
By Kamiquasi
#155879
Check out some of the 'snap' ULPs ( http://www.cadsoftusa.com/downloads/ulps ) - should be one in there that does what you want. If not, I can poke at one to modify it.

Edit: both snap.ulp and snap2grid.ulp do what you want. snap.ulp has a more comfortable user interface and allows you to snap just the grouped objects or all objects in view, as well as traces. snap2grid.ulp has as a benefit (depending on needs) that it will report the current and the new object positions as well as the actual commands executed. Both can be executed from the CLI.