Difference between revisions of "EAGLE Tips"

From Hackstrich
m (EAGLE ULP Snippets moved to EAGLE Tips: Making the page more useful/generic.)
 
Line 1: Line 1:
 
== Check for Unnamed Nets ==
 
== Check for Unnamed Nets ==
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), highlight them, and draw a box around them to make small ones easy to find.
  schematic(S) {
+
  SHOW @ N$*
  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);
 
  }
 
}
 
  
 
[[Category:Notes]]
 
[[Category:Notes]]

Latest revision as of 13:55, 17 October 2010

Check for Unnamed Nets

Check for any nets named starting with N$ (default useless name), highlight them, and draw a box around them to make small ones easy to find.

SHOW @ N$*