Hi,
I'm new to Eagle(v7.7) and new to these forums as well. I've searched for an answer to my question but have not had much luck so here I am.
Our current process, during development, is to use an unverified library for any new components, and a verified library for components already in use in our other products (we've used them, the footprints are correct, the part numbers are correct, etc etc). Part of the release process is to review those new components and move them into the verified library. To avoid duplication and errors, the version in the unverified library gets deleted at this time. This is all well and good, except the component on the schematic will still reference the unverified library, where the device no longer exists. Manually replacing each component on the schematic with one from the verified library would work, but it doesn't sound like a whole lot of fun. My thought was to write a ULP to handle this. I can successfully identify every device using the unverified library using :
schematic(S)
{
S.parts(P)
{
if(P.device.library == "Unverified") <<~~~~~ Unverified is the actual name of the library in this example... Unverified.lbr
I tested this and it successfully identified every component referencing that library. My logical next step (that is apparently not so logical) was to simply assign the new library name after the if statement. So I did this:
schematic(S)
{
S.parts(P)
{
if(P.device.library == "Unverified")
{
P.device.library = "Verified";
}
}
}
Unfortunately, I get a syntax error on the line P.device.library = "Verified"; but I don't know why. Any help would be greatly appreciated.
Best regards,
Bob