Home > Community > Forums > Custom IC Design > Re: How do I call "load /path/usr/test.il" using bindkeys?

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

 Re: How do I call "load /path/usr/test.il" using bindkeys? 

Last post Thu, Oct 11 2012 12:36 PM by Deepon Saha. 3 replies.
Started by Rahim Abdulla 11 Oct 2012 02:01 AM. Topic has 3 replies and 939 views
Page 1 of 1 (4 items)
Sort Posts:
  • Thu, Oct 11 2012 2:01 AM

    Re: How do I call "load /path/usr/test.il" using bindkeys? Reply

     Hi

     

    Can you please help me in this regard.

    I would like to load a skill script using a bindkey in virtuoso.

    like key 1 for load "/path/usr/test.il"

     

    Regards,

    Rahim.

    • Post Points: 5
  • Thu, Oct 11 2012 2:03 AM

    How do I call "load /path/usr/test.il" using bindkeys? Reply

     

    Hi

     

    Can you please help me in this regard.

    I would like to load a skill script using a bindkey in virtuoso.

    like key 1 for load "/path/usr/test.il"

     

    Regards,

    Rahim

    • Post Points: 35
  • Thu, Oct 11 2012 2:32 AM

    Re: How do I call "load /path/usr/test.il" using bindkeys? Reply

    hiSetBindKey("Schematics" "<Key>1" "load(\"/path/usr/test.il\")")

    Better would be to define a function inside test.il and then your bindkey can call it and not keep loading the file each time.

    Andrew.

    • Post Points: 5
  • Thu, Oct 11 2012 12:36 PM

    • Deepon Saha
    • Not Ranked
    • Joined on Wed, Mar 16 2011
    • Bangalore, Karnataka
    • Posts 6
    • Points 90
    Re: How do I call "load /path/usr/test.il" using bindkeys? Reply
    Hello Rahim,

    Its quite simple, at first check if you have a .cdsinit file in the library (the folder in which you run virtuoso), if not create one/add the following lines:

    load(prependInstallPath("/path/test.il"))

    So, the script will be automatically loaded, now in the script, use the bindkey command so that the particular function is loaded whenever you press a certain key.
    eg.: bk("Layout" "<Key>up"   "geScroll(nil \"n\" nil)")

    [This will bind the graphics editor (ge) function to scroll with the 'up' key.]

    Let me know if you need any further help.
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by Rahim Abdulla at 11 Oct 2012 02:01 AM. Topic has 3 replies.