代码不是很了解,我也是查找复制的,我觉得你可以搜一个判断语句,判断是铣销加工就输出余量,是钻销加工就不输出
类似下面:
if [info exists mom_stock_floor] {
set xyst [format "%.2f" $mom_stock_part side]
set zst [format "%.2f" $mom_stock_floor]
}
if {$mom_operation_type == "point to point"} {
set xyst 0
set zst 0
}