• 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 axlSingleSelectPoint(nil) from blocking other code

Stats

  • Replies 2
  • Subscribers 161
  • Views 3390
  • Members are here 0
More Content

Exit axlSingleSelectPoint(nil) from blocking other code

leto
leto over 5 years ago

Hi All,

I'm using the function  "axlSingleSelectPoint(nil)"  to allow user to do a selection.

However, sometimes user may decide to exit this and run another function instead.

I want to allow user to click another button on my form to exit this function & run another function.

--------------------------------------------------------------------------------------

case(FormHandle->curField

  ("Button_Another_Function"
    axlCancelEnterFun()
    axlShell("done")

    ;; run some other process
  )

  ("Button_Current_Function"

     axlSingleSelectPoint(nil)

     ;; run current process

   ) 

)

---------------------------------------------------------------

However  axlSingleSelectPoint(nil)  block all other code from running as long as user doesn't click a point

The form buttons work fine and I can enter the 'case' for 'Button_Another_Function' but all code does not run until use clicks a point.

Using "axlCancelEnterFun()" at the start of the new case doesn't work as this line will not run

May I know how to exit   axlCancelEnterFun()  without using options like RMB  cancel, done etc?

Thanks,

Leto

  • Sign in to reply
  • Cancel
  • luanvn81
    luanvn81 over 5 years ago

    Hi !

     I have an idea that you can try to  built  a pop up  (ex: my_cancel)  for canceling while  processing  axlSingleSelectPoint()   and put that pop up  in your  "Button_Current_Function"  code.

    Tks.

    Luan

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • leto
    leto over 5 years ago in reply to luanvn81

    Thank you. I will try that.

    • 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