|
发表于 2024-9-9 22:55:44
|
显示全部楼层
本帖最后由 ping3721 于 2024-9-9 23:03 编辑
这是从别的地方抄过来的,用起来还没发现问题,可以代理之前的代码,同一把刀不同余量现示不同,钻头不现示余量
global mom_stock_part mom_stock_floor mom_operation_type
if { ![info exists mom_stock_floor] } {
set mom_stock_floor 0
} else {
if { $mom_operation_type != "Point to Point" && $mom_operation_type != "Drilling" } {
MOM_output_literal "(XY=[format "%.3f" $mom_stock_part]mm Z=[format "%.3f" $mom_stock_floor]mm)"
}
}
|
|