• 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. moveOrigin does not work

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 143
  • Views 13352
  • 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

moveOrigin does not work

soldier89757
soldier89757 over 6 years ago

I've tried making the origin of the rectangle stretchable by giving 't' to ?moveOrigin in the function rodAssignHandleToParameter but I failed. I succeeded in creating the rectangle and making it stretchable but I can not move the origin of the rectangle. Can anyone tell me why?

Here is my code:

pcDefinePcell(

     list(ddGetObj( "test_lib") "test_pcell" "layout")

     (Metal_W  0.23)

     (Metal_L    0.6)

     (Met1     "METAL1")

     let(()

       Metal=rodCreateRect(

          ?layer   Met1

         ?width   Metal_W

         ?length  Metal_L

       )

      rodAssignHandleToParameter(

          ?Parameter "Metal_L"

          ?rodObj   Metal

          ?handleName list("upperCenter" "lowerCenter")

          ?displayName "Metal_L"

          ?stretchDir "y"

          ?stretchType "relative"

          ?moveOrigin t

          ?updateIncrement    0.005

      )

  )

)

Regards

John

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

    Hi John,

    Other than a few typos in the code above (I assume you can't have cut-and-paste it into the forum, because it doesn't work as-is), it works OK. If you have ?moveOrigin nil, then stretching the bottom stretch handle causes the top edge to move up or down, rather than the bottom edge moving up or down. If it is t, then the bottom edge correctly moves (in essence the origin of the shape changes.

    Perhaps you've misunderstood what it's supposed to do? Try setting ?moveOrigin nil and observe the difference in behaviour...

    Regards,

    Andrew.

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

    Hi John,

    Other than a few typos in the code above (I assume you can't have cut-and-paste it into the forum, because it doesn't work as-is), it works OK. If you have ?moveOrigin nil, then stretching the bottom stretch handle causes the top edge to move up or down, rather than the bottom edge moving up or down. If it is t, then the bottom edge correctly moves (in essence the origin of the shape changes.

    Perhaps you've misunderstood what it's supposed to do? Try setting ?moveOrigin nil and observe the difference in behaviour...

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
  • soldier89757
    soldier89757 over 6 years ago in reply to Andrew Beckett

    Hi Andrew,

    I'm sorry that I've just published wrong codes. The code above is not the one with problem and I have already solved the problem. Thanks for your reply.

    Regards

    Yblin

    • 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