• 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. Exit out of current command

Stats

  • Replies 4
  • Subscribers 160
  • Views 17268
  • Members are here 0
More Content

Exit out of current command

Khurana
Khurana over 15 years ago

Is there an Allegro Skill function that checks to see if you're in a command or not.  For example, if I click on Edit > Move (or Route > Slide) then I don't want my skill routine executed i.e. first I want to get into "Idle" mode and only when I am in Idle mode, I proceed with my skill routine - any ideas how to accomplish this. 

axlOKToProceed didn't work for me since it returns t even after clicking Edit > Move (but prior to selecting the component to move).  Other option would be to use an Allegro Skill function that cancels the current command such Edit > Move - is there one that does this?  I guess paraphrasing this, I mean to ask if there's an Allegro Skill equivalent to RMB's Done menu pick?  axlFinishEnterFun didn't work for me.

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

    I think that this probably "just works". I have tested this with the "align_sym" SKILL script which uses an "axlOKToProceed" check at the start. I start Edit>Move with the Options tab open, the Options tab displays the "Move" options, I type "align_sym" at the comamnd line to start running the script, the Options tab goes to Active Class / Subclass, and the script runs, so it seems like the script running has "automagically" cancelled the Move command, there is no RMB>Done in the canvas for the Move command

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

    Nope, it doesn't work because I am invoking the skill script I wrote by the way of a keyboard key (key was mapped to the command line command in the env file).

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

    I believe it has to do with how your application is registered and what is presently running in Allegro. The "align_sym" application is registered  as an "interactive" command via axlCmdRegister. So when it runs it will automatically "done" the present interactive command, before it even runs axlOkToProceed.  If your application is registered as "general" it will not automatically "done" the present command. But registering a "general" application as an "interactive" application may have issues since it's expecting a RMB done.

     Craig

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

    Thanks Craig - registering the command as interactive does what I want.

    • 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