Commit 07fdb3e4 authored by Scott Sun's avatar Scott Sun

scott

parent e3c3cc73
......@@ -168,11 +168,11 @@ try {
GEN.selClearFeature()
GEN.selAllFeat()
if(GEN.getSelectCount()>0){
unSelect()
if(GEN.getSelectCount() > 0){
GEN.COM("cur_atr_set,attribute=.drill,option=via")
GEN.COM("sel_change_atr,mode=add")
}
// unSelect()
// if(GEN.getSelectCount() > 0){
// GEN.COM("cur_atr_set,attribute=.drill,option=via")
// GEN.COM("sel_change_atr,mode=add")
// }
}
GEN.clearLayers()
GEN.selClearFeature()
......@@ -189,19 +189,19 @@ try {
GEN.workLayer({name:v.odb_name,display_number:2,clear_before:'yes'})
GEN.selRefFeat({layers:tmp_layer,use:'filter',mode:'touch'})
if(GEN.getSelectCount()>0){
unSelect()
if(GEN.getSelectCount() > 0){
GEN.COM("cur_atr_set,attribute=.drill,option=plated")
GEN.COM("sel_change_atr,mode=add")
}
// unSelect()
// if(GEN.getSelectCount() > 0){
// GEN.COM("cur_atr_set,attribute=.drill,option=plated")
// GEN.COM("sel_change_atr,mode=add")
// }
}
GEN.selReverse()
if(GEN.getSelectCount() > 0){
unSelect()
if(GEN.getSelectCount() > 0){
GEN.COM("cur_atr_set,attribute=.drill,option=non_plated")
GEN.COM("sel_change_atr,mode=add")
}
// unSelect()
// if(GEN.getSelectCount() > 0){
// GEN.COM("cur_atr_set,attribute=.drill,option=non_plated")
// GEN.COM("sel_change_atr,mode=add")
// }
}
GEN.deleteLayer({job:job,layer:[tmp_layer]})
}
......@@ -600,7 +600,7 @@ try {
drill_type:drill_type,
// drill_size : item.drill_size,
drill_slot_length: Number(item.slot_len),
finish_size : Number(item.finish_size).toFixed(3),
finish_size : Number(item.drill_size).toFixed(3),
finish_slot_length: Number(item.slot_len),
// size_tol_lower: item.min_tol,
// size_tol_upper: item.max_tol,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment