Collection of Eagle Scripts and Configs
Procedure
-
Get eagle files for module
- Scripts don't seem to run out side of projects. If there is not an eagle.epf file in the directory you will need to create one to "turn it into a project" (empty is ok)
-
Add attributes to the components to indicate which ones should be included in the footprint
- add the attribute 'EXP2MODFP' to all headers that should be "exported to the module footprint"
- add the attribute 'EXP2MODMECMNT' to all mechanical mounting points to exported
- Run the script 'run exp-module-fp.ulp' from the open project to create a module\_fp.scr. This script contains all of the eagle commands to generate the exported module footprint in another eagle context.
-
Import the footprint into a library
- open a library to import the module footprint into
- create a new footprint for the module
- source the exported script 'scr module\_fp' or just 'scr' and search for it
- cleanup the import to remove things like random text on layers
- If needed create a symbol with the same (or less) pins than were exported for the footprint
-
Create (modify) the library device to include the new footprint
- open an existing device or create a new device and the symbol for the module
- add the footprint to the device, connect the pins and save the library
- Use the new module as a device in a new pcb! :)