• 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. Custom IC SKILL
  3. Enter function bindkey for a specific function.

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 142
  • Views 8264
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Enter function bindkey for a specific function.

Tejaskill
Tejaskill over 2 years ago

Hi all. 

I am looking for a code which can set enter function bindkey for a particular function like in below example

I have written a bindkey enter function as below. 
hiSetBindKey("Layout" "Ctrl<Key>a EF" "a()")
But this should be executed only when I am using Quickalign function in layout.

Is there any way to achieve this?

Thanks, in advance.

  • Cancel
Parents
  • skillUser
    skillUser over 2 years ago

    Hi,

    One way to achieve this is inside your 'a()' function, something like:


    procedure(a()
      when(hiGetCurrentCmd() == "Quick Align"
       ... insert the rest of your code here ...
      ); when
    ); procedure a

    There is another function "hiInEnterFun()" but this returns 'enterPoints when inside Quick Align (and possibly other values, but this is what I saw when playing around).

    Hopefully this is what you are looking for?

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tejaskill
    Tejaskill over 2 years ago in reply to skillUser

    Hi Lawrence 

    Thanks for the reply this is exactly what I was looking for

    And I have two more questions.

    1. I want to assign two functions i.e. leHiQuickAlign() and Invoking a form by using hiDisplayForm(xyz) to a BINDKEY
    Is there any way can we achieve this

    2.Can we get more information BINDKEY ENTER FUNCTIONS and ENTER POINTS

    Thanks,
    Teja

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Tejaskill
    Tejaskill over 2 years ago in reply to skillUser

    Hi Lawrence 

    Thanks for the reply this is exactly what I was looking for

    And I have two more questions.

    1. I want to assign two functions i.e. leHiQuickAlign() and Invoking a form by using hiDisplayForm(xyz) to a BINDKEY
    Is there any way can we achieve this

    2.Can we get more information BINDKEY ENTER FUNCTIONS and ENTER POINTS

    Thanks,
    Teja

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • skillUser
    skillUser over 2 years ago in reply to Tejaskill

    Hi Teja,

    For the first item you can make your bindkey setting something like the following:

    hiSetBindKey("Layout" "<Key>a" "hiEnqueueCmd(\"hiDisplayForm(xyzForm)\") leHiQuickAlign()")

    For the second item the documentation has all the information that you should want, all of the enterFunctions, for example, are there (e.g. enterBox, enterPoint, enterPoints, enterPolygon ...) - the doc hierarchy is SKILL -> SKILL Language -> Cadence User Interface SKILL Reference -> User Entry Functions and the file for this is <install_dir>/doc/skuiref/chap12.html This should answer your question.

    Best regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Tejaskill
    Tejaskill over 2 years ago in reply to skillUser

    Thanks for the reply Lawrence

    Best regards,
    Teja

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel

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