Cadence Skill 论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
查看: 11|回复: 0

[求助] 求助,form勾选 程序bug问题

[复制链接]
发表于 昨天 17:00 | 显示全部楼层 |阅读模式
本帖最后由 xieeyawen 于 2025-5-12 17:02 编辑

case(getq setform cuRField)
                ("nc_mode1" NCmode_Init())

                ("nc_mode2" NCmode_Init())
       )

初次进入form,两个都未选择,就可以选择模式一或者模式二。一旦选择一次,选择另一个就会软件bug住了

函数内容
defun( NCmode_Init ()
let((command1 command2)
when(axlFormGetField(setform "nc_mode1")
sprintf(command1 "setwindow pcb;generaledit;ncdrill legend;
                        setwindow form.nc_drilllegend;FORM nc_drilllegend layer_pair_legends YES;
                        FORM nc_drilllegend done; setwindow pcb")
axlShellPost(command1)
axlShell("Done")
    )
when(axlFormGetField(setform "nc_mode2")
sprintf(command2 "setwindow pcb;generaledit;ncdrill legend;
                        setwindow form.nc_drilllegend;FORM nc_drilllegend by_layer_legends YES;
                        FORM nc_drilllegend done; setwindow pcb")
axlShellPost(command2)
axlShell("Done")
)
)
)


本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|网站地图|Cadence Skill 论坛 ( 蜀ICP备13024417号 )

GMT+8, 2025-5-13 05:51 , Processed in 0.138796 second(s), 18 queries .

Powered by Discuz! X3.4

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表