调试成功但封装后不能用什么情况
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
求解
开始 图没传上去 图在这里
老问题了,参考:
http://www.allegro-skill.com/thread-220-1-1.html
页:
[1]