| 
 | 
 
 
发表于 2024-1-25 09:54:17
|
显示全部楼层
 
 
 
global ptp_file_name 
    set tmp_file_name "${ptp_file_name}_" 
    if {[file exists $tmp_file_name]} { 
        MOM_remove_file $tmp_file_name 
    } 
    MOM_close_output_file $ptp_file_name 
    file rename $ptp_file_name $tmp_file_name 
    set ifile [open $tmp_file_name r] 
    set ofile [open $ptp_file_name w] 
    global mom_machine_time 
    puts $ofile "(All cuting time = [format "%.2f" $mom_machine_time] Min.)" 
    set buf "" 
    while { [gets $ifile buf] > 0 } { 
            puts $ofile $buf 
    } 
    close $ifile 
    close $ofile 
    MOM_remove_file $tmp_file_name 
    MOM_open_output_file $ptp_file_name  
新建一个定制命令,把这个粘贴到程序结束序列就可以了 |   
 
 
 
 |