• 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. Alias code help

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 144
  • Views 15477
  • 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

Alias code help

vmartins
vmartins over 14 years ago

Hi to all,I looked around for this codes but finally I decided to ask.

I'm a very basic skill coder but I want to learn more so first if someone could send me a link on where to start I appreciate.

Secondly, I was trying to setup a alias to togle between two callbacks functions I set up in other script that is loaded before in the setup.

what is the code line expression!!??   list( "Ctrl<Key>KEY"     "....")

 

For last, I was trying to set up a alias to toggle "sidewyas" and "upside down" option in a move or copy command.

how do I toggle functions inside option forms!!

 

Thanks very much for the help in advance and best regards

Vasco

  • Cancel
Parents
  • dmay
    dmay over 14 years ago

    Take a look at these older posts that tell you where you can learn more about Skill programming.

    /forums/p/17488/1245532.aspx#1245532

    /forums/p/3486/3496.aspx#3496

    I'm assuming that you are referring to bindkeys rather than aliases. the command you want to use is:

    hiSetBindKey(
    [t_applicationType]
    [t_key]
    [t_skill_cmd]
     )
         => t | nil
    Binds a SKILL command string to a keyboard key or a mouse sequence for an application.

    Reference above comes from the Cadence Skill Finder utility. You can start it from a shell command line using "cdsFinder" or from your CIW using "startFinder". You can then use it to find commands and a brief description of their arguments. More information is in the Skill Reference guide.

    Here is a simple example for a bindkey to run the Layer Tap command:
    hiSetBindKey("Layout" "Ctrl<Key>t" "leHiLayerTap()")

    Lastly, if you are using the built-in Cadence commands for move/copy/stretch, then typically the right mouse button or middle mouse button will rotate the item you are moving, and a shift and the mouse button will flip sideways or upside down. Here are the bindkeys used in 6.1.5:

    hiSetBindKey("Layout" "None<Btn2Down> EF" "lxCmdOptions()")
    hiSetBindKey("Layout" "Ctrl<Btn2Down> EF" "cmdCtrlOption()")
    hiSetBindKey("Layout" "Shift<Btn2Down> EF" "lxCmdShiftOptions()")

    Notice the "EF" designation. This indicates that the command will only work during an "Enter Function". In other words, when you are in the midst of a "move" operation, this key will work. If no commands are active these key bindings won't be used, You could actually have a different command bound to these keys without the EF designation that would be used when no command is currently running.

    Take a look at the default bindkeys by going to the CIW->Options->Bindkeys menu.

    Derek

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • dmay
    dmay over 14 years ago

    Take a look at these older posts that tell you where you can learn more about Skill programming.

    /forums/p/17488/1245532.aspx#1245532

    /forums/p/3486/3496.aspx#3496

    I'm assuming that you are referring to bindkeys rather than aliases. the command you want to use is:

    hiSetBindKey(
    [t_applicationType]
    [t_key]
    [t_skill_cmd]
     )
         => t | nil
    Binds a SKILL command string to a keyboard key or a mouse sequence for an application.

    Reference above comes from the Cadence Skill Finder utility. You can start it from a shell command line using "cdsFinder" or from your CIW using "startFinder". You can then use it to find commands and a brief description of their arguments. More information is in the Skill Reference guide.

    Here is a simple example for a bindkey to run the Layer Tap command:
    hiSetBindKey("Layout" "Ctrl<Key>t" "leHiLayerTap()")

    Lastly, if you are using the built-in Cadence commands for move/copy/stretch, then typically the right mouse button or middle mouse button will rotate the item you are moving, and a shift and the mouse button will flip sideways or upside down. Here are the bindkeys used in 6.1.5:

    hiSetBindKey("Layout" "None<Btn2Down> EF" "lxCmdOptions()")
    hiSetBindKey("Layout" "Ctrl<Btn2Down> EF" "cmdCtrlOption()")
    hiSetBindKey("Layout" "Shift<Btn2Down> EF" "lxCmdShiftOptions()")

    Notice the "EF" designation. This indicates that the command will only work during an "Enter Function". In other words, when you are in the midst of a "move" operation, this key will work. If no commands are active these key bindings won't be used, You could actually have a different command bound to these keys without the EF designation that would be used when no command is currently running.

    Take a look at the default bindkeys by going to the CIW->Options->Bindkeys menu.

    Derek

     

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

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