• 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. Is it possible to have a "Copy and Paste" function like...

Stats

  • Locked Locked
  • Replies 9
  • Subscribers 143
  • Views 7699
  • 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

Is it possible to have a "Copy and Paste" function like the "Yank and Paste" ?

zeroskills
zeroskills over 15 years ago

Is it possible to have a "Copy and Paste" function like the "Yank and Paste"?

The Yank  function some what is a Copy function except it literaly "cut" what ever is drawn over by a selection box, if you select half of a device using Yank, you'll only get half of it.

Is it possible to have something like this:

- select devices, wires etc. either by selection box (dragging a mouse from 1 point to another) or by selecting individual or by group,

- then which ever you selected, you can "copy it" like a Yank, then you can paste it.

Some uses for it for exmaple:

I've done this with Yank and Paste but i don't know what origin it's using. instead of opening the contact window to instanciate a via, you can just copy a via then when you want a via, just paste it. yes, you can do it manually, select a via then copy, then copy etc. but would it be nice to just copy once then paste it endlessly? 

 

 

  • Cancel
Parents
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    What it should do is put the copyBuffer into the library for the same cell you're editing - so you shouldn't need to change it.

    Perhaps the problem is that there is no reference point. The default is that it doesn't prompt, but picks it up from the reference point (set with the plus bindkey).

    You might want to do:

    abCopyPaste->setOption('promptRefPoint t)

    And then that problem will be cured. I'm going to fix the code to handle this scenario, as well as fix another issue with the code I just spotted (if you try to set promptRefPoint back to nil, it will fail).

    But I think the above setting (which you could put in your .cdsinit after loading the code) will fix your problem. I'll paste the improved code back here when I'm done (out of the office at the moment, so won't be right now). Sorry - insufficient testing when I threw this together in the first place...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • Andrew Beckett
    Andrew Beckett over 15 years ago

    What it should do is put the copyBuffer into the library for the same cell you're editing - so you shouldn't need to change it.

    Perhaps the problem is that there is no reference point. The default is that it doesn't prompt, but picks it up from the reference point (set with the plus bindkey).

    You might want to do:

    abCopyPaste->setOption('promptRefPoint t)

    And then that problem will be cured. I'm going to fix the code to handle this scenario, as well as fix another issue with the code I just spotted (if you try to set promptRefPoint back to nil, it will fail).

    But I think the above setting (which you could put in your .cdsinit after loading the code) will fix your problem. I'll paste the improved code back here when I'm done (out of the office at the moment, so won't be right now). Sorry - insufficient testing when I threw this together in the first place...

    Regards,

    Andrew.

    • 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