Bootstrap
mdo 云课精选 发表于:07-21 13:20   阅读(32)   回复(0)

来源: https://www.ugsnx.com/thread-360392-1-1.html

网友(zdp215)提问:

不太明白作者的意思,是让我一个字符一个字符的打字,还是选择UG里已经有的命令,我在已经有的命令里找了,没找到这个命令,只好自己一个字一个字的打,结果报错,这本书上讲的是按UG12.0讲的,我用的软件是UG2206,是UG2206和UG12.0版本不同的原因吗?

还有个问题,我如果用UG12.0的后处理构造器编写后处理文件,可以用于UG2206后处理程序吗?平时上班用的是UG2206。

大神(开学)回复:

应该最后少加了个大括号。

大神(qwe456)回复:

global mom_operation_type
global mfg_mode
if{[info exists mom_operation_type]} {
  if{([
      string match "Variable-axis*" $mom_operation_type
       ]||
      string match "Sequential Mill Main Operation" $mom_operation_type
       ]||
      string match "Variable-axis Z-Level Milling" $mom_operation_type
       ]){
          set mfg_mode "4_axis"
          } else{
                 set mfg_mode "3+1_axis"
                 }

     }
}

#MOM_output_literal " $mom_operation_type"

楼主(zdp215)回复(qwe456):

谢谢,你改的这个好用。

大神(依梦飞扬)回复:

左括号5个,右括号才4个。这是什么书,推荐下。