★纯属虚构♂ 发表于 2015-5-21 23:11:33

调试成功但封装后不能用什么情况

il文件内容如下
axlCmdRegister( "26" 'L6)
defun( L6 ()
SGScriptFile = outfile("./pin.scr")
fprintf(SGScriptFile "reports 'Summary Drawing Report'\nplacementedit\nsetwindow text\nsave\nfillin 'summary.txt'\nsetwindow text\nclose\nsetwindow pcb\n")
        close(SGScriptFile)
        axlShell(strcat("replay " "./pin.scr"))
)
运行结果
C:\Users\Administrator\Desktop\001.png


但整个调试状态下是ok的
Skill > SGScriptFile = outfile("./pin.scr")
port:"./pin.scr"
Skill > fprintf(SGScriptFile "reports 'Summary Drawing Report'\nplacementedit\nsetwindow text\nsave\nfillin 'summary.txt'\nsetwindow text\nclose\nsetwindow pcb\n")
t
Skill > close(SGScriptFile)
t
Skill >         axlShell(strcat("replay " "./pin.scr"))
t
Skill >
C:\Users\Administrator\Desktop\002.png


求解

★纯属虚构♂ 发表于 2015-5-21 23:13:55

开始 图没传上去 图在这里

vivienluo 发表于 2015-5-21 23:16:40

老问题了,参考:
http://www.allegro-skill.com/thread-220-1-1.html
页: [1]
查看完整版本: 调试成功但封装后不能用什么情况