iCAx开思网
标题:
关于加工时间mom_machine_time
[打印本页]
作者:
sshong
时间:
2008-3-31 15:53
标题:
关于加工时间mom_machine_time
我想用tcl或者tpl输出总加工时间mom_machine_time
可是不管我在
tcl中
global mom_machine_time
MOM_output_literal "&global mom_machine_time"
还是直接在tpl中
<span>$mom_machine_time</span>
总是抱错,找不到变量mom_machine_time,求大虾指教
作者:
wdxdyx
时间:
2008-3-31 17:05
#=============================================================
proc PB_CMD_custom_command_1 { } {
#=============================================================
global mom_machine_time
MOM_output_literal "%(TOTAL MACHINE TIME:[format "%.2f" $mom_machine_time min])"
}
作者:
sshong
时间:
2008-3-31 17:09
这段代码是不是放到tcl里,然后再tpl中某处[proc PB_CMD_custom_command_1]?
作者:
sshong
时间:
2008-3-31 18:22
这样做还是报错啊,找不到变量mom_machine_time阿
作者:
hulugua
时间:
2008-3-31 20:03
按照2楼的语句格式应该没错的。
欢迎光临 iCAx开思网 (https://www.icax.org/)
Powered by Discuz! X3.3