Home > Community > Forums > Custom IC SKILL > Bindkey for instance/via selectability

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 instance/via selectability 

Last post Mon, Nov 4 2013 7:15 AM by eriksu. 2 replies.
Started by eriksu 02 Nov 2013 03:03 PM. Topic has 2 replies and 2485 views
Page 1 of 1 (3 items)
Sort Posts:
  • Sat, Nov 2 2013 3:03 PM

    • eriksu
    • Not Ranked
    • Joined on Fri, Nov 1 2013
    • Posts 2
    • Points 25
    Bindkey for instance/via selectability Reply

    I am trying to write a bindkey procedure to toggle instance & via slectability on/off, but I can't figure out how to get the palette number(see example below)

    _pteHiObjectSetSelectability(dwindow('pteObjectPalette2) "Instances" nil) 

     

    Does anyone know a good procedure to do this? 

    Filed under:
    • Post Points: 20
  • Sun, Nov 3 2013 6:38 PM

    • psill000
    • Top 200 Contributor
    • Joined on Sat, Jun 1 2013
    • Posts 38
    • Points 730
    Re: Bindkey for instance/via selectability Reply

    Try these procedures

    procedure(togInstance()

    let(    (nBool

            (bool leGetObjectSelectable("inst"))

                    )

    nBool = null(bool)

    leSetObjectSelectable("inst" nBool)

    leSetObjectVisible("inst" nBool)

    if(nBool then

            printf("Instanes Selectable\n")

    else    printf("Instanes Unselectable\n"))

    ); end of let

    ); end of togInstance

    procedure(togMosaic()

    let(    (nBool

            (bool leGetObjectSelectable("Mosaic"))

            )

    nBool = null(bool)

    leSetObjectSelectable("Mosaic" nBool)

    leSetObjectVisible("Mosaic" nBool)

    if(nBool then

            printf("Mosaics Selectable\n")

    else    printf("Mosaics Unselectable\n"))

    ); end of let

    ); end of togMosaic

     

    procedure(togVia()

    let(    (nBool

            (bool leGetObjectSelectable("via"))

            )

    nBool = null(bool)

    leSetObjectSelectable("via" nBool)

    leSetObjectVisible("via" nBool)

    if(nBool then

            printf("Vias Selectable\n")

    else    printf("Vias Unselectable\n"))

    ); end of let

    ); end of togVia

     

    procedure(togRuler()

    let(    (nBool

            (bool leGetObjectSelectable("ruler"))

            )

    nBool = null(bool)

    leSetObjectSelectable("ruler" nBool)

    if(nBool then

            printf("Ruler Selectable\n")

    else    printf("Ruler Unselectable\n"))

    ); end of let

    ); end of togRuler 

    • Post Points: 20
  • Mon, Nov 4 2013 7:15 AM

    • eriksu
    • Not Ranked
    • Joined on Fri, Nov 1 2013
    • Posts 2
    • Points 25
    Re: Bindkey for instance/via selectability Reply
    That was just what I was looking for, thanks!!!!
    • Post Points: 5
Page 1 of 1 (3 items)
Sort Posts:
Started by eriksu at 02 Nov 2013 03:03 PM. Topic has 2 replies.