• 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. axlOKToProceed

Stats

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

axlOKToProceed

Khurana
Khurana over 15 years ago
Hi,

Using Allegro Skill, I’d like to know how to check to see whether Allegro PCB Editor is in the middle of a command such as Edit > Move…I looked in the Allegro Skill User Guide and looks like axlOKToProceed would work but it’s not working for me and I'd like to know if there’s a better way to do this OR there's a fundamental problem in my code (below)?

Below is the text which shows how I am currently using axlOKToProceed…blah1 and blah2 statements are still getting executed even when okProceed is null.  When okProceed is null, then I’d like axlUIConfirm to get executed, and it’s not.

Thanks,

Varun

axlCmdRegister("dtext" 'decreaseText ?cmdType "general")

(defun decreaseText ()

                (prog (okProceed)

                okProceed = axlOKToProceed()

                if(okProceed

                then

                                blah1

                                blah2

                else

                                axlUIConfirm(“Blah Blah”)

                ); end if

                ); end prog

 

); end defun
 
  • Sign in to reply
  • Cancel
Parents
  • Helen
    Helen over 14 years ago

    It is not about "if" it is about "when".

    (when axlOKToProceed
        ;; do AXL interactive command
        )

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

    It is not about "if" it is about "when".

    (when axlOKToProceed
        ;; do AXL interactive command
        )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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