Home > Community > Forums > PCB SKILL > axlselect not getting cancelled using popup menu Cancel option

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 axlselect not getting cancelled using popup menu Cancel option 

Last post Mon, Dec 17 2012 5:02 PM by pcbnagaraj. 6 replies.
Started by pcbnagaraj 14 Dec 2012 03:55 AM. Topic has 6 replies and 1387 views
Page 1 of 1 (7 items)
Sort Posts:
  • Fri, Dec 14 2012 3:55 AM

    • pcbnagaraj
    • Top 150 Contributor
    • Joined on Mon, Dec 5 2011
    • bangalore, Karnataka
    • Posts 55
    • Points 1,130
    axlselect not getting cancelled using popup menu Cancel option Reply

    All,

     

     I am defining a popup to cancel axlselect in the interactive mode .. I need to twice select Cancel in the popup to exit the axlselect command.

    How to  determine the axlselect command is exited – tried using axlOKToProceed() while axlSelect command is active it returns ‘t’

     Below is the code.. what am I missing?

     Appreciate your help.

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

     procedure( testpopup()

     mypopup = axlUIPopupDefine( nil '(

    ("Next", "myNext()" )

    ("Oops", "myOops()" )

    ("Cancel", "myCancel()" )

    ("Done", "myDone()" )

    ))

     

    axlUIPopupSet(mypopup)

    axlSetFindFilter(?enabled '(noall symbols) ?onButtons '(noall symbols))

    dbids= axlGetSelSet(axlSelect(?prompt "Select components"))

     

    if(dbids then

    axlUIWPrint(nil "- symbol selected -")

    else

    axlUIWPrint(nil "- symbol not selected -")

    )

     ) ; end procedure

     

     procedure( myNext()

    axlUIWPrint(nil "- Next -")

    )

     procedure( myOops()

    axlUIWPrint(nil "- oops -")

    )

     procedure( myCancel()

    axlUIWPrint(nil "- Cancel -")

    axlCancelEnterFun()

    axlUIPopupSet(nil)

    )

    procedure( myDone()

    axlUIWPrint(nil "- Done -")

    )

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

     Thanks,

    Nagaraj.

     
    Filed under:
    • Post Points: 20
  • Sun, Dec 16 2012 2:23 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: axlselect not getting cancelled using popup menu Cancel option Reply

    Hi Nagaraj,

    For starters replace the line:  dbids = axlGetSelSet(axlSelect(?prompt "Select components"))

    with: axlSelect(?prompt "Select components") dbids = axlGetSelSet() axlClearSelSet()

    Dave 

    Dave Elder, Tait Communications
    • Post Points: 20
  • Sun, Dec 16 2012 11:57 PM

    • pcbnagaraj
    • Top 150 Contributor
    • Joined on Mon, Dec 5 2011
    • bangalore, Karnataka
    • Posts 55
    • Points 1,130
    Re: axlselect not getting cancelled using popup menu Cancel option Reply
    Thanks Dave for looking into this, but still the behaviour is same. I need to cancel twice using pop-up->Cancel to get out of axlSelect() command.

    Tried with 'noappmode' but no luck. Contacted Cadence support for their suggestion.

    procedure( myCancel()

    axlUIWPrint(nil "- Cancel -")

    axlCancelEnterFun()

    axlUIPopupSet(nil)

    axlShell("noappmode")

    )

     
    • Post Points: 20
  • Mon, Dec 17 2012 12:16 AM

    • D912349
    • Top 150 Contributor
    • Joined on Fri, Nov 23 2012
    • Posts 47
    • Points 800
    Re: axlselect not getting cancelled using popup menu Cancel option Reply

    Hi Nagaraj,

    Instead of using axlSelect, try using this:

    axlSetFindFilter(depends on your selection)

    axlEnterPoint()

    axlSingleSelectPoint(axlLastPick(nil) for single selection or axlAddSelectPoint(axlLastPick(nil) if you want to group

    dbidSelected = axlGetSelSet().

    based on my experience, this code is easier to control instead of axlSelect.

    • Post Points: 20
  • Mon, Dec 17 2012 5:58 AM

    • pcbnagaraj
    • Top 150 Contributor
    • Joined on Mon, Dec 5 2011
    • bangalore, Karnataka
    • Posts 55
    • Points 1,130
    Re: axlselect not getting cancelled using popup menu Cancel option Reply

    Hi,

    The axlSelect will allow me to do window selection, tempgroup and is same as in Move/copy comand.

    axlEnterPoint will select comonents at single point.

    Wondering is there no way to exit axlSelect() in single command or its the limitation with User pop-up defined.

    Thanks,

    Nagaraj.

    • Post Points: 20
  • Mon, Dec 17 2012 11:27 AM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: axlselect not getting cancelled using popup menu Cancel option Reply
    See attached for a working implementation of axlSelect
    Dave Elder, Tait Communications
    • Post Points: 20
  • Mon, Dec 17 2012 5:02 PM

    • pcbnagaraj
    • Top 150 Contributor
    • Joined on Mon, Dec 5 2011
    • bangalore, Karnataka
    • Posts 55
    • Points 1,130
    Re: axlselect not getting cancelled using popup menu Cancel option Reply

    Thanks Dave.. Let me review the code and axlSelect logic used.

    Good day!

    Nagaraj.

    • Post Points: 5
Page 1 of 1 (7 items)
Sort Posts:
Started by pcbnagaraj at 14 Dec 2012 03:55 AM. Topic has 6 replies.