• 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. bindkey to move selected object

Stats

  • Locked Locked
  • Replies 5
  • Subscribers 143
  • Views 17344
  • 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

bindkey to move selected object

mctang
mctang over 9 years ago

Hi All,

I want to create my own bindkey to use key 5/6/7/8 to move a select object left/right/up/down, and the moving distance is 0.005 upon each key-pressing.

eg, if I press key ‘5’, the selected(highlighted) object will move up 0.005, press ‘6’ will move it down 0.005, etc.

 

Currently in Virtuoso, we can only move the object by dragging the mouse.  But I’m used to use bindkey in other layout tools, and I want to do the same in Virtuoso.

 

I myself tried following , but it didn’t work (it always popped out Move window which I do not like) :

 

procedure( leMoveObj(deltx delty)

    leHiMove()

    le0MoveForm->moveXField->value=deltx

    le0MoveForm->moveYField->value=delty

    _leApplyDeltaCB(hiGetCurrentWindow())

)

 

hiSetBindKey("Layout" "<Key>5" "leMoveObj(-0.005 0)")

hiSetBindKey("Layout" "<Key>6" "leMoveObj(0.005 0)")

hiSetBindKey("Layout" "<Key>7" "leMoveObj(0 0.005)")

hiSetBindKey("Layout" "<Key>8" "leMoveObj(0 -0.005)")

Any suggestion ?

Thanks,

ManChak

  • Cancel
Parents
  • mctang
    mctang over 9 years ago

    Hi Andrew and Ramakrishnan,

    Thank you for your suggestions. I modified Andrew 's code "dbMoveFig(obj nil xform)". It works well now. (Moderator note: corrected Andrew's original code to add the missing argument)

    Thanks,

    ManChak

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • mctang
    mctang over 9 years ago

    Hi Andrew and Ramakrishnan,

    Thank you for your suggestions. I modified Andrew 's code "dbMoveFig(obj nil xform)". It works well now. (Moderator note: corrected Andrew's original code to add the missing argument)

    Thanks,

    ManChak

    • 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