Discussion:
replace library names in schematic
(too old to reply)
Harry Herbert
2019-09-10 15:26:36 UTC
Permalink
Using exp-project-lbr.ulp will create alibrary from my project. But it doesnt replace the part directive in the schematic to the newly created libray.

Is there a way to do that??

Greetings

Harry

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/280992
rachaelp
2019-09-10 16:34:48 UTC
Permalink
Hi Harry,

You haven't said what version of EAGLE you are using but in the more recent Autodesk versions, the exp-lbrs.ulp ULP which is called from File->Export...->Libraries gives an option to create a replace script. Once run the libraries in the board will be pointing a the exported libraries instead.

Best Regards,

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/281011
Lorenz
2019-09-11 05:47:49 UTC
Permalink
Post by Harry Herbert
Using exp-project-lbr.ulp will create alibrary from my project. But it
doesnt replace the part directive in the schematic to the newly
created libray.
Is there a way to do that??
see "help update"

UPDATE old_library_name = new_library_name;
--
Lorenz
Harry Herbert
2019-09-16 13:27:44 UTC
Permalink
But if my project contains parts from 10 different libraries, must I then execute this command ten times??

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/281533
Lorenz
2019-09-17 05:42:37 UTC
Permalink
Post by Harry Herbert
But if my project contains parts from 10 different libraries, must I then execute this command ten times??
yes

it could be automated using an ULP though.
there might even be one around already.
--
Lorenz
warrenbrayshaw
2019-09-17 07:35:18 UTC
Permalink
Go here
http://eagle.autodesk.com/eagle/ulp
and search for
exp-lbrs-replace2.ulp
This does what you want.
In Bob Starr's words

"I modified the export project ULP to allow exporting all parts into a
single project specific library. BUT, the magic part is that it also
generates a script you can run afterward to replace all parts in the
schematic so they reference the newly created project specific library.
I\'ve also updated the ULP so it now shows a list of all libraries used
in a schematic and it allows selecting which library parts to
export/replace. Now you can easily export and edit any of the parts in
any of your designs within a single project specific library on the fly!"

HTH
Warren
Post by Lorenz
Post by Harry Herbert
But if my project contains parts from 10 different libraries, must I then execute this command ten times??
yes
it could be automated using an ULP though.
there might even be one around already.
--
... use NNTP://news.cadsoft.de and a functional news reader like
Thunderbird!

---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
Warren Brayshaw
2019-09-17 07:39:01 UTC
Permalink
Go here
http://eagle.autodesk.com/eagle/ulp
and search for
exp-lbrs-replace2.ulp
This does what you want.
In Bob Starr's words

"I modified the export project ULP to allow exporting all parts into a single project specific library. BUT, the magic part is that it also generates a script you can run afterward to replace all parts in the schematic so they reference the newly created project specific library. I\'ve also updated the ULP so it now shows a list of all libraries used in a schematic and it allows selecting which library parts to export/replace. Now you can easily export and edit any of the parts in any of your designs within a single project specific library on the fly!"

HTH
Warren

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/281560
rachaelp
2019-09-17 08:02:38 UTC
Permalink
Post by warrenbrayshaw
Go here
http://eagle.autodesk.com/eagle/ulp (https://www.element14.com/community/external-link.jspa?url=http%3A%2F%2Feagle.autodesk.com%2Feagle%2Fulp)
and search for
exp-lbrs-replace2.ulp
This does what you want.
If you are using any of the more recent versions of EAGLE since mid v8 then the built in exp-lbrs.ulp which ships with EAGLE and accessible from File->Export->Libraries incorporates all this functionality and also fixes some incompatibilities caused by the addition of managed libraries. You should use that instead.

Best Regards,

Rachael

--
To view any images and attachments in this post, visit:
https://www.element14.com/community/message/281611

Loading...