• 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. Create bindkey for display levels

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 14853
  • 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

Create bindkey for display levels

custom
custom over 15 years ago

I'm trying to create a bindkey for Display Levels Start and Stop.  For example: if I used the + key to view one level down. If I hit the + key again I would then be looking at 2 levels down. If I hit the - key, then I would be looking at 1 level down. If I hit the - key again I would be at the 0 level.  Does anyone have an idea on how to do this?

 thanks,

Mark

 

  • Cancel
  • dmay
    dmay over 15 years ago

    We have a routine that does this. You pass it an integer representing how much you want to change the depth. The bindkeys below use the +/- near the backspace. For the Keypad, you could use: <Key>KP_Add or <Key>KP_Subtract.

    Derek

    procedure(myShowHierDepth( @optional (step 1))
        let((curstep)
          curstep = hiGetCurrentWindow()->stopLevel
          curstep = curstep + step
          cond(
              (curstep > 20 curstep=20)
              (curstep < 0  curstep=0 )
          )
          hiGetCurrentWindow()->stopLevel = curstep
        );let
    );procedure

    hiSetBindKey("Layout"         "<Key>=" "myShowHierDepth(1)")
    hiSetBindKey("Layout"        "<Key>-" "myShowHierDepth(-1)")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • custom
    custom over 15 years ago

    That worked perfectly.

    Great response time.

    Thanks Derek 

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • lrl12skdev
    lrl12skdev over 15 years ago

     

    Hi,

    you can also do something like shown below so you dont need to load any skill routine. 

    hiSetBindKey("Layout" "<Key>[" "hiGetCurrentWindow()->stopLevel = hiGetCurrentWindow()->stopLevel-1")
    hiSetBindKey("Layout" "<Key>]" "hiGetCurrentWindow()->stopLevel = hiGetCurrentWindow()->stopLevel+1")

     br,  rence

    • 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