• 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. Copy and Paste Selected Objects While Rotating In Place

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 143
  • Views 8033
  • 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

Copy and Paste Selected Objects While Rotating In Place

TryingToSkill
TryingToSkill over 3 years ago

Hello,

I am trying to copy/paste a group of selected objects. I came across this thread: https://community.cadence.com/cadence_technology_forums/f/custom-ic-skill/13774/automated-copy-and-rotate but that seems to rotate the objects relative to the entire chip/cell view. I am trying to rotate the objects relative to their own position.

To clarify, right now it seems like if I apply an R90 orientation using dbCopyFig() to an object after I offset it by say -45:0, it doesn't end up 45 microns left of the current selected/copied object and rotated 90 degrees relative to its old orientation, it ends up rotated 90 degrees with respect to the main view's origin and so way off the page.

Anyone know how to copy and paste with an in-place rotation?

Thanks!

  • Cancel
  • Andrew Beckett
    Andrew Beckett over 3 years ago

    You could either do this in two steps - copy and select (using geSelectFig) the shapes using no transformation, and then use SKILL to flip a selection of instances and shapes in a layout or schematic in place to rotate the selection in-place, or modify that code to accept a list of objects and then copy them first (with no transformation) and set the figs variable near the beginning of the code to the result of that copy. i.e. changing the first few lines to be something like:

    (procedure (CCSflipCopy @key (orient "MY") (relativeTo 'centerBox) (source (geGetSelSet))
      (mode 'move) noSnap
      (win (hiGetCurrentWindow)))
      (let (bbox figs origin transform (cv (geGetEditCellView win)))
        (setq figs (foreach mapcar srcObj source (dbCopyFig srcObj cv)))

    then the rest of the function would be the same as CCSflip. Note I didn't test this...

    Andrew

    • 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