|
楼主 |
发表于 2020-10-29 19:09:50
|
显示全部楼层
谢谢兄弟慷慨相助,兄弟在后处理TCL语言上可谓是登峰造极啊,兄弟我想再请教你一个问题global mom_tool_name
global mom_tool_diameter
global mom_tool_corner1_radius
set tdi [ format "%.2f" $mom_tool_diameter]
set tr [ format "%.2f" $mom_tool_corner1_radius]
if [info exists mom_stock_floor] {
set xystock [format "%.2f" $mom_stock_part side]
set zstock [format "%.2f" $mom_stock_floor]
}
if {$mom_operation_type == "point to point"} {
set xystock 0
set zstock 0
}
这段代码是避免钻孔余量报警
我写成这样
global mom_tool_name qa
global mom_tool_diameter
global mom_tool_corner1_radiusmom_tool_name mom
set tdi [ format "%.2f" $mom_tool_diameter]
set tr [ format "%.2f" $mom_tool_corner1_radius]if [info exists mom_stock_floor] {
set qa $mom_tool_name
}
if {$mom_operation_type == "point to point"} {
set qa 钻头$tdi
}
我是想当是钻孔操作设置刀具名为: 钻头+直径
这段代码为什么行不通,请兄弟指点
|
|