QEagleScaler is a command line tool for scaling Eagle CAD files.
Latest supported file format version is 8.0
QEagleScaler implements following functions:
- Scale Eagle file up/down:
QEagleScaler scale <source_file> <target_file> <factor>
All PCB-related coordinates will be multiplied by <factor>
:
QEagleScaler scale mylibrary.lbr mylibrary.2x.lbr 0.5
QEagleScaler scale myproject-2x.sch myproject-1x.sch 2
QEagleScaler scale myproject-2x.brd myproject-1x.brd 2
- Modify library extensions for scaled files:
QEagleScaler libsuffix mylibrary.2x.lbr mylibrary.2x.lbr '' '.2x'
QEagleScaler libsuffix myproject-1x.sch myproject-1x.sch '.2x' ''
QEagleScaler libsuffix myproject-1x.brd myproject-1x.brd '.2x' ''
The workflow for a scaled-down EagleCAD project includes following steps:
-
Create scaled-down version of EagleCAD component libraries using scripts in
doc/automation
. All libraries must be in XML format with DTD version in range from 6.0 to 8.0. Put your libraries inlibs-original
directory and runupdate-makefile
script, this script will create a GNU Make makefile for updating scaled versions of libraries, then run themake
command. -
Create an EagleCAD project only with scaled-down versions of libraries, do not mix original and scaled versions. Make sure that
[Globals]
section ofeagle.epf
does not contain unwanted libraries. If you're starting from an existing project, usescale-down
script fromdoc/automation/project-dir
to modify the project. Change the board name in script before using it. -
Modify your DRC rules to scale and save them. See examples in
doc/automation/design-rules
. -
Develop your project, use
update-makefile
from step (1) when you add new libraries and runmake
when you modify them. -
When you're ready to produce GERBER files, use
scale-up
script fromdoc/automation/project-dir
, load scaled-up project and load correct DRC rules. Change the board name in script before using it.
When switching scales, close project and unload all libraries e.g. by exiting EagleCAD, this will help to avoid mixing of libraries of different scales in one project.