• 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 14572
  • 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
  • jwhend
    jwhend over 11 years ago

     Hi Dave,

    The " (form_status->curField=="cancel" || !form_status ->continue" causes the form to close as soon as you select any button. I'm not sure why.

    Here is what I have, does this make since?? Thanks for you help.

     

     procedure(_callback(form_status)
    let((newbox numFields)
        cond(
            (form_status->curField=="cancel" ||  !form_status->continue
            axlCancelEnterFun()
            axlDBControl('drcEnable t)
            axlUIWUpdate(nil)
            axlFormClose(form_status)
            )
            (form_status->curField=="cancel"
            axlCancelEnterFun()
            axlDBControl('drcEnable t)
            axlUIWUpdate(nil)
            axlFormClose(form_status)
            )

            (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()
            )
    )
    )
    )

    procedure(PCD_ceCreatePathTables(etchgroup)
    let((lyr_cnt LayerTable coupon_rotation coupon_symbol coupon_x coupon_y Path1_tbl Path2_tbl Path3_tbl Path4_tbl)

        LayerTable=PCD_ceGetEtchInfo()

            axlSetFindFilter(
            ?enabled list("noall" "symbols")
            ?onButtons list("noall" "symbols")
            )
           
            when(axlOKToProceed()

             form_status->continue=t
            form_status->continue=axlSingleSelectPoint()
    ;axlSingleSelectPoint()
            coupon_symbol=car(axlGetSelSet())
            coupon_rotation=float(coupon_symbol->rotation)
            coupon_x=car( coupon_symbol->xy)
            coupon_y=cadr( coupon_symbol->xy)
            lyr_cnt=1

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

     I think I have a different work around. I placed a "when(coupon_symbol " do the rest. This way until a selection is actually made, nothing happens.

    Thanks for the suggestions.

    Jerry

    • 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