找回密码
 注册
关于网站域名变更的通知
查看: 1791|回复: 3
打印 上一主题 下一主题

怎样添加Oops操作呢

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2016-9-25 21:12 | 只看该作者 回帖奖励 |正序浏览 |阅读模式

EDA365欢迎您登录!

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

x
allegro skill 中有一个例子,但是我看了还是不太会
mark = axlDBTransactionStart()
...#1 do stuff ...
axlDBTransactionMark(mark)
...#2 do stuff ...
axlDBTransactionMark(mark)
...#3 do stuff ...
;; do an oops of the last two changes
axlDBTransactionOops( mark ) ; oops out #3
axlDBTransactionOops( mark ) ; oops out #2
axlDBTransactionOops( topList); commit only #1  


比方说,现在修改线宽,
updatedDbid = axlChangeWidth(dbid, 20.0)  
修改完线宽之后,怎么做一个弹出式菜单,然后菜单中有 Done  Oops  Cancel 呢 ?
重要的是Oops怎么实现?



  • TA的每日心情
    开心
    2021-8-21 15:05
  • 签到天数: 55 天

    [LV.5]常住居民I

    4#
    发表于 2021-5-7 13:13 | 只看该作者
    Home oops 收下学习了,谢谢楼主。

    该用户从未签到

    3#
    发表于 2017-5-23 14:29 | 只看该作者
    收下学习了,谢谢楼主

    该用户从未签到

    2#
    发表于 2016-9-27 14:16 | 只看该作者
    https://www.eda365.com/thread-93514-1-1.html
    1. procedure( test()
    2. let((mypopup dbid_symbol)
    3.         if(axlOKToProceed() then
    4.                 axlClearSelSet()
    5.                 axlSetFindFilter(?enabled '("NOALL" "SYMBOLS") ?onButtons '("SYMBOLS"))
    6.                 mypopup = axlUIPopupDefine(nil list(list("Done" 'test_done) list("Cancel" 'test_cancel)))
    7.                 axlUIPopupSet(mypopup)
    8.                 stop = t
    9.                 while(stop
    10.                         axlClearSelSet()
    11.                         dbid_symbol = axlGetSelSet(axlSingleSelectBox())
    12.                         if(dbid_symbol then
    13.                                 axlHighlightObject(dbid_symbol t)
    14.                                 println(dbid_symbol~>name)
    15.                         else
    16.                                 println(dbid_symbol~>name)
    17.                         )
    18.                 )
    19.                 axlUIPopupSet(nil)
    20.         else
    21.                 axlUIConfirm("Finish current command first.")
    22.         )
    23. );end let
    24. );end procedure

    25. procedure( test_done()
    26. let(()
    27.         stop = nil
    28.         axlFinishEnterFun()
    29. )
    30. )

    31. procedure( test_cancel()
    32. let(()
    33.         stop = nil
    34.         axlCancelEnterFun()
    35. )
    36. )
    复制代码



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

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-11-23 11:58 , Processed in 0.156250 second(s), 24 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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