• 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 14574
  • 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
Parents
  • 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
Reply
  • 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
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