Difference between revisions of "EAGLE Tips"
From Hackstrich
(Headingifying unnamed net checker.) |
(Adding a pointer box to the net highlighting.) |
||
Line 2: | Line 2: | ||
Check for any nets named starting with N$ (default useless name) and highlight them. | Check for any nets named starting with N$ (default useless name) and highlight them. | ||
schematic(S) { | schematic(S) { | ||
− | string strScript = "SHOW "; | + | string strScript = "SHOW @ "; |
S.nets(N) { | S.nets(N) { | ||
if(strstr(N.name, "N$") > -1) { | if(strstr(N.name, "N$") > -1) { | ||
Line 8: | Line 8: | ||
} | } | ||
} | } | ||
− | if(strScript == "SHOW ") { | + | if(strScript == "SHOW @ ") { |
dlgMessageBox("All nets are named.", "OK"); | dlgMessageBox("All nets are named.", "OK"); | ||
exit(0); | exit(0); |
Revision as of 13:32, 17 October 2010
Check for Unnamed Nets
Check for any nets named starting with N$ (default useless name) and highlight them.
schematic(S) { string strScript = "SHOW @ "; S.nets(N) { if(strstr(N.name, "N$") > -1) { strScript += N.name + " "; } } if(strScript == "SHOW @ ") { dlgMessageBox("All nets are named.", "OK"); exit(0); } else { exit(strScript); } }