Hi Simon (I'm assuming you will be the one looking into this),
I've completed a plugin that reads net names from a csv file and compares the names to the selected nets in a design. If the names match, then a circuit id property is assigned to the net.
The plugin is intended to run on a buildlist.
The problem is that that the plugin seems to run continuously. When the plugin starts, it requests the csv file to use, and then starts running through the design....and doesn't seem to want to stop. I've let it run for about an hour at a time before manually shutting it down.
I was hoping you could take a look at the main routine below and see if there's anything you notice that could be causing this, or if it's simply due to the amount of data that's being handled.
try{
br = new BufferedReader(new FileReader(mapFile));
while ((line = br.readLine()) != null){
String[] items = line.split(cvsSplitBy);
circuitID.put(items[0],items[1]);
for (IXBuildList buildlist : ixac.getSelectedObjects(IXBuildList.class)){
for(IXDesign b_list : buildlist.getDesigns()){
for(IXNet net: b_list.getConnectivity().getNets()){
String netName = net.getAttribute("name");
String netShared = net.getAttribute("SharedObjectRevision");
if(netShared !=null || !netShared.isEmpty()){
if(items[0].compareToIgnoreCase(netName)==0){
// net.getAttributeSetter().addProperty("Circuit ID", items[1]);
cons.println(items[0]);
}
}
if(items[0].compareToIgnoreCase(netName)==0){
// net.getAttributeSetter().addProperty("Circuit ID", items[1]);
cons.println(items[0]);
}
}
}
}
}
}catch(IOException ex){
Logger.getLogger(Set_Circuit_ID.class.getName()).log(Level.SEVERE,null, ex);