xieh_17 发表于 2013-6-19 15:23:03

提示:Can't find window; form.plctxt,请大神指教什么原因?

本帖最后由 xieh_17 于 2013-6-19 15:24 编辑

placement.scr脚本内容如下:setwindow pcb
version 15.2
trapsize 2459
plctxt out
setwindow form.plctxt
FORM plctxt execute
FORM plctxt cancel
setwindow pcb此脚本在set telskill环境运行:axlShell("replay ./placement.scr"),没有问题,可生成place_txt.txt文件。
但放入test.il文件中运行则提示:提示:Can't find window; form.plctxt
test.il内容如下:axlCmdRegister("test",'test)
procedure(test()
      let(()
      axlShell("replay ./placement.scr")
)
)通过运行grid.scr脚本验证以上test.il语言格式是没有问题,奇怪的grid.scr可以在il文件形式运行。
grid.scr内容如下:setwindow pcb
version 15.2
trapsize 245
define grid
setwindow form.grid
FORM grid non_etch non_etch_x_grids 100.00
FORM grid non_etch non_etch_y_grids 100.00
FORM grid all_etch all_etch_x_grids 100
FORM grid all_etch all_etch_y_grids 100
FORM grid done
setwindow pcb
以下程序可以运行:axlCmdRegister("test",'test)
procedure(test()
let(()
axlShell("replay ./grid.scr")
)
)
比较两个脚本中的内容,格式看起来都差不多,都有form,为什么有如此结果,请大神指点,谢谢!

XYX365 发表于 2013-6-19 16:30:59

本帖最后由 XYX365 于 2013-6-20 08:03 编辑

你試試看修改此行 axlCmdRegister("test", 'test ?cmdType "general")

xieh_17 发表于 2013-6-19 16:55:51

XYX365 发表于 2013-6-19 16:30 static/image/common/back.gif
你試試看修改此行 axlCmdRegister(test", 'test ?cmdType "general")

多谢大大指点,OK了。
命令中掉了一个分号axlCmdRegister("test", 'test ?cmdType "general")为什么之前的il代码运行grid.scr可以,运行placement.scr就不行呢?

王开鑫55 发表于 2018-1-4 10:39:00

谢谢,解决问题了

Chesi 发表于 2018-8-9 19:23:12

王开鑫55 发表于 2018-1-4 10:39
谢谢,解决问题了

这个问题你怎么解决的呀

王开鑫55 发表于 2018-8-13 09:02:15

Chesi 发表于 2018-8-9 19:23
这个问题你怎么解决的呀

你試試看修改此行 axlCmdRegister("test", 'test ?cmdType "general")
页: [1]
查看完整版本: 提示:Can't find window; form.plctxt,请大神指教什么原因?