1
0
Fork 0
This repository has been archived on 2019-12-23. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
arduinisten/eagle-5.7.0/ulp/run-loop-all-packages-script.ulp
Eve Entropia 157fd6f1a1 eagle
2010-03-30 20:14:34 +02:00

21 lines
639 B
Text

#usage "<b>Run a SCRIPT through all symbols in a library</b><p>\n"
"RUN run-loop-all-packages-script [SCRIPT]<br>"
"<author>Author: librarian@cadsoft.de</author><p><p>"
string Version = "1.0"; // 2008-08-28
string ScriptFile = argv[1];
string cmd, s;
if (library) {
library(L) {
if (!ScriptFile) ScriptFile = dlgFileOpen("Select a SCRIPT to run in all PACKAGES", path_scr[0], "*.scr");
if (!ScriptFile) exit(0);
L.packages(P) {
sprintf(s, "EDIT %s.PAC;\nSCRIPT '%s';\n", P.name, ScriptFile);
cmd += s;
}
}
exit (cmd);
}
else dlgMessageBox("Start this ULP from a Library", "OK");