• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. axlUIPopupDefine & axlUIPopupSet

Stats

  • Replies 5
  • Subscribers 161
  • Views 2591
  • Members are here 0
More Content

axlUIPopupDefine & axlUIPopupSet

Khurana
Khurana over 15 years ago

Hi Folks,

Has anyone used these two functions?  If yes, what are they used for? After reading the manual, I thought that these functions are used to create the RMB menu ie. axlUIPopupDefine lets you create the menu and axlUIPopupSet calls that menu.  But, I am not able to get this to work, hence thought they may not be what I am looking for.

My goal is to allow the user to terminate the function by selecting Done from RMB menu - how can I go about doing that?  Any hints will be appreciated.

Thanks,
Varun

  • Sign in to reply
  • Cancel
  • eDave
    eDave over 15 years ago

    Here's a simple example:

    defun( showElement ()
      mypopup = axlUIPopupDefine(nil, list(list("Done" 'axlFinishEnterFun) list("Cancel" 'axlCancelEnterFun)))
      axlUIPopupSet(mypopup)
      axlSetFindFilter(?enabled, '("NOALL", "ALLTYPES", "NAMEFORM") ?onButtons "ALLTYPES")
      while(axlSelect(), axlShowObject(axlGetSelSet()))
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Khurana
    Khurana over 15 years ago

    Thank you Dave - this helps a lot.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AllenYang
    AllenYang over 14 years ago

    Hi eDave:

    The example you give can run successfully without any problem just in the Application mode "NONE" of Allegro 16.3.

    And in other three Application Modes (Genaral Edit/ Placement Edit/ Etch Edit) the PopupMenu won't display when we run the command "showElement " the first time.

    But after we select anything on the board, we can see the PopupMenu displayed again.

    Can you tell me how to display the PopupMenu when we run the command "showElement " the first time ??

    Thanks a lot !

    Best Regards

    Allen

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • aeris
    aeris over 14 years ago

    Hi Allen,

    for Allegro version higher than 15.7, we usually "force" allegro into Application mode "NONE"

    (if allegroVersion>15.7 then
        axlShell("noappmode")
    )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • AllenYang
    AllenYang over 14 years ago

    Hi aeris:

    After we force allegro into Application mode "NONE",it work very well.

    Thank you for your suggestion!

    Best Regards

    Allen

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information