Re: EAGLE_NAME
The following ULP file renames all VIAS with name "GND1", "GND2", etc. to "GND"
Just type run rename-via.ulp GND
--------
#usage "replace vias with signal name
"
string newname = strupr(argv[1]);
string cmd = "GRID MM finest;\nDISPLAY NONE 18;\n";
string s;
if (board) board(B) {
B.signals(S) {
if (S.name != newname) {
if (strstr(S.name, newname) == 0) {
S.vias(V) {
sprintf(s, "RIPUP (%.4f %.4f);\n CHANGE DRILL %.4f;\n CHANGE DIAM %.4f;\nVIA '%s' (%.4f %.4f);\n",
u2mm(V.x), u2mm(V.y),
u2mm(V.drill),
u2mm(V.diameter[1]),
newname,
u2mm(V.x), u2mm(V.y)
);
cmd+=s;
}
}
}
}
exit(cmd);
}