I am new to ULP.
I can count how many wires there're in a layer by this code
int i=0;
string buff;
board(B) {
B.wires(w) {
if (w.layer==46){
i++;
}
}
}
sprintf(buff,"%d wires",i);
dlgMessageBox(buff);
What I would like is deleting the wires of layer 46 by a ULP. Is there any built in function for that? Something like
delete(w)
?
If it is not possible, what other approach could I use to delete the content of a layer programmatically?