Display Levels in Layout editor

Discussion in 'Cadence' started by Dougie T, Aug 27, 2009.

  1. Dougie T

    Dougie T Guest

    Hi,

    I know Ctrl-f and shift-f toggle between level0 view and full depth
    view.

    However, does anyone know if two bindkeys can be set up to
    progressively set the display levels from 0, 1, 2, ....etc and back
    down again?

    It can be a bit tedious using the Display Options form if I'm doing a
    lot of hierarchy traversing!!

    thanks in advance.

    Dougie.
     
    Dougie T, Aug 27, 2009
    #1
  2. Dougie T

    Riad KACED Guest

    Hi Dougie,

    This is a quick attempt that defines a layout Bindkey Shift Mouse
    scroll UP/Down to play around with the stop level.
    You might tweak this skill at your convenience.

    Cheers,
    Riad.

    ; Skill starts here
    procedure(RKchangeStopLevel(incr)
    let((stopLevelOld stopLevelNew)
    stopLevelOld=hiGetCurrentWindow()->stopLevel
    stopLevelNew=stopLevelOld+incr
    unless(stopLevelNew>0
    stopLevelNew=0
    )
    unless(stopLevelNew<dbGetMaxHierDepth()
    stopLevelNew=dbGetMaxHierDepth()
    )
    hiGetCurrentWindow()->stopLevel=stopLevelNew
    printf("Stop View = %d\n" hiGetCurrentWindow()->stopLevel)
    )
    )

    hiSetBindKeys( "Layout" list(
    list("Shift<Btn4Down>" "RKchangeStopLevel(1)");
    list("Shift<Btn5Down>" "RKchangeStopLevel(-1)");
    ))
    ; Skill ends here
     
    Riad KACED, Aug 27, 2009
    #2
  3. Dougie T

    Dougie T Guest


    Thanks Riad. I will get on this today.

    regards,
    Dougie.
     
    Dougie T, Aug 28, 2009
    #3
  4. Dougie T

    Dougie T Guest


    That worked exactly as I had hoped.
    Many thanks again Riad.

    Dougie.
     
    Dougie T, Aug 28, 2009
    #4
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.