I want to delete all unused packages and symbols from a library. I want to do this in one operation, not one at a time. Is this possible?
Tom
I want to delete all unused packages and symbols from a library. I want to do this in one operation, not one at a time. Is this possible?
Tom
Hi Tom,
I can think of a couple of ways to do this, I don't think there is a quick one line command to run within a library to purge unused symbols and packages though.
So if I wanted to do this as a one off thing, I would create a new empty library and open it in the library editor. I'd then browse to your old library in the control panel and select each of your devices, right click and select "Copy to Library". You have to do each one individually unfortunately as it doesn't seem to allow multiple select but unless your library is huge this shouldn't take more than a second or two for each device. This will copy all the symbols and packages which are used by the devices you copy and leave unused symbols and packages behind. You can then rename/delete your new/old libraries to put the new "cleaned" library in place of the old one.
The other way you could do it if it was something you'd be wanting to do regularly would be to write a ULP to loop through all of the packages and symbols in the library and then for each, loop through all the device sets and use that to determine used symbols and packages and create lists of unused ones. These lists would then be used to create a set of commands to pass to the library editor on script exit to delete all the unused symbols and packages.
Best Regards,
Rachael
There is a ULP supplied with Eagle.
del-pack-sym.ulp
That will likely work for you.
Warren
--
Web access to CadSoft support forums at www.eaglecentral.ca. Where the CadSoft EAGLE community meets.