![]() |
![]() |
Running an Eagle script to add to a library |
Post Reply ![]() |
Author | |
SteveD ![]() Expert User ![]() Joined: 30 Oct 2013 Location: San Diego Status: Offline Points: 240 |
![]() ![]() ![]() ![]() ![]() Posted: 04 Feb 2015 at 1:07pm |
I am sometimes unable to run an Eagle script to update an existing library. I have to run it on a new empty library. I gets errors about layers not being available. I'm not sure what the context is that leads to this working sometimes and sometimes not. Maybe others have seen it and know.
|
|
![]() |
|
![]() |
|
chrisa_pcb ![]() Moderator Group ![]() ![]() Joined: 29 Jul 2012 Location: San Diego Status: Offline Points: 772 |
![]() ![]() ![]() ![]() ![]() |
I know that layers are called out at the top of every script file. If those don't match to the layers of the library, ya I could see it having a problem. Not much I can do about it though other than continue to generate a script file per your requested layers. |
|
![]() |
|
montemcguire ![]() New User ![]() Joined: 12 Sep 2015 Status: Offline Points: 9 |
![]() ![]() ![]() ![]() ![]() |
I've found too that if you run the script into a new, empty library, these errors will not happen.
What seems to matter is what type of object is open in the library while the script is executed. If a package is open, then the script will always work. More accurately, if the library is not empty, then a device or symbol could be active and the package script might generate errors. If a package is being edited in the library and the script is run, it will work. So, while an empty library will work, it's more to do with executing the script only in the context of editing a package in the library. |
|
![]() |
Post Reply ![]() |
|
Tweet |
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |