EEVblog Electronics Community Forum

Electronics => PCB/EDA/CAD => Eagle => Topic started by: 1276-2449-1-ND on February 23, 2018, 08:20:57 pm

Title: Custom Libraries (again)
Post by: 1276-2449-1-ND on February 23, 2018, 08:20:57 pm
I've been trying to figure out how to create a library of all the components we use across all our PCBs (~30) -- and only those components: no unused packages or symbols.

Reasons:

I already have a custom library with all the common stuff, and custom parts. I'm trying to cull this down so that eventually we'll be restricted to using only parts (and especially packages) in this library.

This topic was brought up before (https://www.eevblog.com/forum/eagle/re-moving-parts-to-custom-library/msg117433/#msg117433). However these methods copy everything, not just the used packages.

I found an interesting ULP: "lbr-merge" for concatenating libraries if exporting only used packages of components (However, Export Libraries exports everything, or only packages with no other data). There doesn't appear to be much else for this sort of thing.

Is there something I'm missing? Or do I have to go through each component and delete each package manually?


Title: Re: Custom Libraries (again)
Post by: ar__systems on April 04, 2018, 12:45:16 pm
Open the target library in the editor.
Find the source library in the Eagle's browser (main window).
Expand it and find the component you want to copy.
Right click, select "Copy To Library".
Title: Re: Custom Libraries (again)
Post by: ebastler on April 04, 2018, 08:48:15 pm
This topic was brought up before (https://www.eevblog.com/forum/eagle/re-moving-parts-to-custom-library/msg117433/#msg117433). However these methods copy everything, not just the used packages.

I think this comment was referring to the "right click, copy to library" method. So the OP is aware of it but is looking for a slightly different functionality.
Title: Re: Custom Libraries (again)
Post by: 1276-2449-1-ND on April 29, 2018, 02:38:39 pm
Yeah, I was hoping for something less tedious and more scriptable. I ended up recreating the device in a new library, and copy-pasting just the packages I wanted. It only took a day to do almost everything -- still tedious though.