EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.suggest.eng » how do i delete all unused packages in a library?
how do i delete all unused packages in a library? [message #165759] Sat, 21 May 2016 13:17 Go to next message
tsmuts
Messages: 1
Registered: May 2016
Junior Member
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

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/197521
Re: how do i delete all unused packages in a library? [message #165764 is a reply to message #165759] Sun, 22 May 2016 09:19 Go to previous messageGo to next message
rachaelp
Messages: 604
Registered: March 2015
Location: UK
Senior Member
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, I would create a new empty library and open
it in the library editor. I'd then brown 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 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

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/197577
Re: how do i delete all unused packages in a library? [message #165776 is a reply to message #165759] Sun, 22 May 2016 23:39 Go to previous message
warrenbrayshaw
Messages: 1767
Registered: January 2010
Location: New Zealand
Senior Member
There is a ULP supplied with Eagle.
del-pack-sym.ulp

That will likely work for you.

Warren
Previous Topic: How about GIT support for designs?
Next Topic: Auto add >NAME and >VALUE in the symbol editor
Goto Forum:
  


Current Time: Thu Sep 21 06:56:39 GMT 2017