• 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 code to change end point according to new Design ...

Stats

  • Locked Locked
  • Replies 2
  • Subscribers 144
  • Views 9201
  • 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 code to change end point according to new Design rule

EJAZ27
EJAZ27 over 3 years ago

a horizontal drawing layer is need to be aligned with guide as shown in figure. i want to automate it. I don t have much experience in cadence skill. you can consider me as a beginner level. it can be either done by reading guide or manually giving input how much length layer needs to be extended or pulled back.

  • Cancel
Parents
  • mbracht
    mbracht over 3 years ago

    Hi,

    I'am not exactly sure what you want to do - the summary says "change end point according to new Design rule..." and in the description you say you want to align a horizontal drawing layer. Changing the end point of a path is easy, the OA attribute on a path's database object is "points", it's value is a list of points. Since this is an attribute you can write to, all you need to do is to assign a new value to this attribute. To try this out just select the path and then:
    myPath = css()
    myPath~>points
    ...which returns the current points list. And then assign a new value to it - for example
    myPath~>points = (list (list 0.0 0.0) (list 0.5 0.0 ))

    To do this on all paths in a given design you need to iterate over all shapes of type path (assuming the design is available in a SKILL variable named cv):
    (foreach path (setof shape cv~>shapes shape~>objType=="path")
       path~>points = <new points list>
    )

    Since your question is not very detailed (especially with respect to the new end point of the path according to a new design rule - what design rule?) I can only provide a very general approach.

    Max

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
Reply
  • mbracht
    mbracht over 3 years ago

    Hi,

    I'am not exactly sure what you want to do - the summary says "change end point according to new Design rule..." and in the description you say you want to align a horizontal drawing layer. Changing the end point of a path is easy, the OA attribute on a path's database object is "points", it's value is a list of points. Since this is an attribute you can write to, all you need to do is to assign a new value to this attribute. To try this out just select the path and then:
    myPath = css()
    myPath~>points
    ...which returns the current points list. And then assign a new value to it - for example
    myPath~>points = (list (list 0.0 0.0) (list 0.5 0.0 ))

    To do this on all paths in a given design you need to iterate over all shapes of type path (assuming the design is available in a SKILL variable named cv):
    (foreach path (setof shape cv~>shapes shape~>objType=="path")
       path~>points = <new points list>
    )

    Since your question is not very detailed (especially with respect to the new end point of the path according to a new design rule - what design rule?) I can only provide a very general approach.

    Max

    • Cancel
    • Vote Up +1 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