procedure( _rm_nc_clines() let(list(l_clines, cline cline_count rm_cline_count ) l_nc_vias=list() cline_count = 0 rm_cline_count = 0 axlClearSelSet() axlSetFindFilter(?enabled '("NOALL" "CLINES" invisible) ?onButtons '("CLINES")) axlAddSelectAll() ;select all of the clines in the design l_clines = axlGetSelSet() ;put the clines in a list cline_count = axlGetSelSetCount() printf("%d clines found in the design.\n" cline_count) axlClearSelSet() ;step through the cline list looking for unconnected cline. foreach(cline l_clines if(cline->net->name==nil then ;found an unconnected cline axlDeleteObject(cline) ;delete the cline rm_cline_count++ ;increment the counter );endif );end foreach printf("%d unconnected vias removed.\n" rm_cline_count) );end let);end procaxlCmdRegister("rmc" '_rm_nc_clines)