• 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. skill for move and stretch object

Stats

  • Locked Locked
  • Replies 8
  • Subscribers 143
  • Views 19926
  • 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

skill for move and stretch object

imaneet
imaneet over 10 years ago

hello,


can anyone help me with a skill doing move or stretch in a specific spacing for objects (path, rectangle, polygon, pins, etc)? similar to the gui stretch/move by delta input.

i would like it to have a bindkey using arrow keys, if i hit left (right, up, down) it will move/stretch the object (any shape) by 1um (or any value). using the gui takes longer, the bindkey will be faster if someone can help.

thanks in advance.

  • Cancel
  • skillUser
    skillUser over 10 years ago

    Hi,

    I think that the functionality you want is already built-in.  Take a look at the default layout bindkey file:

    `cds_root virtuoso`/tools/dfII/samples/local/leBindKeys.il

    Look for any entry that contains "legRpDelta".  You would start the move or stretch command and then use the keypad keys to move the cursor by the specified amount in the desired direction. If you have infix turned on (CIW Options -> User Preferences) then the first point is where the mouse is when you start the command.

    Hopefully this is what you are looking for.

    Regards,

    Lawrence.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imaneet
    imaneet over 10 years ago
    I tried loadin the leBindKeys.il and it does not work, it will only move/stretch the cursor but not the object/shape using the arrow keys. i would like the same function of the GUI move/stretch using delta inputs.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • skillUser
    skillUser over 10 years ago
    That's the point, it moves the cursor by the fixed amount stored in legRpDelta - for example, you start the stretch command, and depending on how 'infix' is set you may need to select the edge of the shape to be stretched, then you use the keypad keys to move the cursor by the specific amount in the direction you want. I think that's what you were asking for...
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imaneet
    imaneet over 10 years ago
    i'm not used to using infix. if possible, i just like a code that has the same function of the GUI move/stretch using delta inputs. if i input 1um and hit left, it will move/stretch the object by 1um.
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imaneet
    imaneet over 10 years ago

    I figured out a temporary solution, maybe you could improve(?). it will stretch/move an object at 2um but it only do it on one object, but i would like to do it on multiple object as well. i think in order to do it, it will need a foreach routine (sorry, i'm not a skill code savvy guy).

    ;Y move stretch

    hiSetBindKey("Layout" "Shift<Key>F9" "leStretchShape( car(geGetSelSet()) 0:2 geGetSelSetFigPoint( car(geGetSelSet()) ) t )")

    ;-Y move stretch

    hiSetBindKey("Layout" "Shift<Key>F10" "leStretchShape( car(geGetSelSet()) 0:-2 geGetSelSetFigPoint( car(geGetSelSet()) ) t )")

    ;X move stretch

    hiSetBindKey("Layout" "Shift<Key>F11" "leStretchShape( car(geGetSelSet()) 2:0 geGetSelSetFigPoint( car(geGetSelSet()) ) t )")

    ;-X move stretch

    hiSetBindKey("Layout" "Shift<Key>F12" "leStretchShape( car(geGetSelSet()) -2:0 geGetSelSetFigPoint( car(geGetSelSet()) ) t )")

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago

    You could just use:

    hiSetBindKey("Layout" "Shift<Key>F9" "foreach(obj geGetSelSet() leStretchShape(obj 0:2 geGetSelSetFigPoint(obj) t))")

    and similar for the other bindkeys.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • imaneet
    imaneet over 10 years ago

    Thanks! Can I ask for more? can this be made into a form that I can input the "delta" and then i can save or load?

    for example: i can have 4 save/load options for different delta inputs so that i don't need to manually change the line "delta" every time and load it every time as well. thanks in advance!

    1 save 1 2 3 4
    -1 1 load 1 2 3 4
    -1
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • Andrew Beckett
    Andrew Beckett over 10 years ago
    I'm sure you can write something to do that. I personally don't have time to write it for you though.
    • 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