• 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. Cancelling axlSingleSelectPoint() ??

Stats

  • Replies 7
  • Subscribers 159
  • Views 14565
  • Members are here 0
More Content

Cancelling axlSingleSelectPoint() ??

jwhend
jwhend over 11 years ago

 Hi all,

I want to cancel a axlSingleSelectPoint() command if the user decided not to finish. I there a way to cancel axlSingleSelectPoint()?

Thanks,

Jerry

 

  • Sign in to reply
  • Cancel
  • seyerfred
    seyerfred over 11 years ago

    did you already try to add this in your code?

    mypopup = axlUIPopupDefine( nil

    (list (list "Done" 'axlFinishEnterFun)

    (list "Cancel" 'axlCancelEnterFun)))

    axlUIPopupSet( mypopup)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jwhend
    jwhend over 11 years ago

     I'm doing this from a form field.The program create voids and etch for test coupons, where each layer has a different pattern.

    If the user decides to exit after selecting a box, I want to be able to kill the axlSingleSelectPoint, if I can.

    The user selects a checkbox and then selects a component(axlSingleSelectPoint) :

            axlSingleSelectPoint()
            coupon_symbol=car(axlGetSelSet())
            coupon_rotation=float(coupon_symbol->rotation)
            coupon_x=car( coupon_symbol->xy)
            coupon_y=cadr( coupon_symbol->xy)

    The issue I am having is that if the user decide not to pick a component and exit out the procedures continues to the end, or fails.

    My callback looks like this:

     procedure(_callback(form_status)
    let((newbox numFields)
        cond(
            (form_status->curField=="cancel"
            axlCancelEnterFun()
            axlUIWUpdate(nil)
            axlFormClose(form_status)
            deleteFile("./DC_Reg_Coupon.form")
            )

            (form_status->curField=="Reset"
            numFields=form_status->fields
            axlClearSelSet()
                foreach(Field numFields
                axlFormColorize(form_status Field 'background nil)
                axlFormSetField(form_status Field nil)
                )
            )

            (integerp(atoi(form_status->curField))
            newbox=atoi(form_status->curField)
            PCD_ceCreatePathTables(newbox)
            axlFormColorize(form_status form_status->curField 'background 'green)
            axlClearSelSet()
            )
    )
    )
    )

    Jerry

    seyerfred said:

    did you already try to add this in your code?

    mypopup = axlUIPopupDefine( nil

    (list (list "Done" 'axlFinishEnterFun)

    (list "Cancel" 'axlCancelEnterFun)))

    axlUIPopupSet( mypopup)

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 11 years ago

    Hi Jerry,

     

    I would use a variable to control this:

    form_status->continue = nil

    .

    .

    form_status->continue = axlSingleSelectPoint()

    .

    .

    procedure(_callback(form_status)
    let((newbox numFields)
        cond(

            (form_status->curField=="cancel" || !form_status ->continue

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • jwhend
    jwhend over 11 years ago

     Hi Dave,

    Where do I add form_status->continue=nil?

    I tried to add it above the  form_status->continue = axlSingleSelectPoint(), but it closes the form when I select a button.

     Also, this is a global variable, correct?

    Thanks,

    Jerry

     

    eDave said:

    Hi Jerry,

     

    I would use a variable to control this:

    form_status->continue = nil

    .

    .

    form_status->continue = axlSingleSelectPoint()

    .

    .

    procedure(_callback(form_status)
    let((newbox numFields)
        cond(

            (form_status->curField=="cancel" || !form_status ->continue

     

     

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 11 years ago

    Sorry, I put you wrong. Initialise it to t.

    It's not global because it's an attribute of the form variable. Of course I have assumed that your form variable is form_status and you may well have used something else.. 

    • 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