Home > Community > Forums > Custom IC Design > BindKey for "Area Selection Controls"

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: *

 BindKey for "Area Selection Controls" 

Last post Fri, Nov 25 2011 9:01 PM by Xegotronix. 2 replies.
Started by Xegotronix 25 Nov 2011 11:27 AM. Topic has 2 replies and 1383 views
Page 1 of 1 (3 items)
Sort Posts:
  • Fri, Nov 25 2011 11:27 AM

    • Xegotronix
    • Not Ranked
    • Joined on Wed, Aug 26 2009
    • Waterloo, Ontario
    • Posts 6
    • Points 105
    BindKey for "Area Selection Controls" Reply
    I am looking to assign bindkeys to switch between "Area Selection Modes" in Virtuoso. mode 1: Enclosed Figures + Vertex mode 2: Enclosed and Crossed Figures + Edge Only I know how to set bindkeys, but I do not know the skill functions to set the above options. Can anyone help me with this please? Many Thanks, Yaser
    • Post Points: 20
  • Fri, Nov 25 2011 5:37 PM

    • Quek
    • Top 10 Contributor
    • Joined on Wed, Oct 14 2009
    • Singapore, 00-SG
    • Posts 1,084
    • Points 16,515
    Re: BindKey for "Area Selection Controls" Reply

    Hi Yaser

    You can use the following procedure. Pressing F10 will switch between the 2 modes.


    Best regards
    Quek

    procedure( CCSsetAreaSelection()
       let( (curWin curMode)
          curWin=hiGetCurrentWindow()
          curMode=curWin->fullSelectionMode
          case(curMode
             ("enclosed"
                curWin->fullSelectionMode="enclosedAndCrossed"
                curWin->partialSelectionMode="crossedEdge"
             )
             (t ;"enclosedAndCrossed"
                curWin->fullSelectionMode="enclosed"
                curWin->partialSelectionMode="Vertex"
             )
          ) ;case
       ) ;let
    ) ;procedure

    hiSetBindKey("Layout" "F10" "CCSsetAreaSelection()")

    • Post Points: 20
  • Fri, Nov 25 2011 9:01 PM

    • Xegotronix
    • Not Ranked
    • Joined on Wed, Aug 26 2009
    • Waterloo, Ontario
    • Posts 6
    • Points 105
    Re: BindKey for "Area Selection Controls" Reply
    Hi Quek, Thanks for the script. But it doesn't work! It causes error messages in icfb. I found geToggleAreaSelectOption() does what I want: hiSetBindKey("Layout" "F3" "geToggleAreaSelectOption()") Cheers, Yaser
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by Xegotronix at 25 Nov 2011 11:27 AM. Topic has 2 replies.