I'm interested to minimize the number of vias in a pcb. I've written a program which generates an Eagle script which runs through various options [eg grid 5,10,25 mil and various routing preferences for top and bottom] and writes number of vias to a file.
The program:
for( i=0; i < numberOfConfigurations; i++)
RIPUP;
AUTO LOAD configuration[i];
AUTO;
if( RATSNETS == "Nothing to do!" )
RUN countVias.ulp;
Questions
1. RIPUP always requires user interaction (click OK), what can I do to have RIPUP execute without any user interaction?
2. Sometimes AUTO fails to route completely. How can I test this in a script or .ulp *without* any user interaction? Or how can I implement: if( RATSNETS == "Nothing to do!" ) in a script?
Thank you for your time & help.
Karel