• 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. How to change the width of a path using skill

Stats

  • Locked Locked
  • Replies 3
  • Subscribers 143
  • Views 15174
  • 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

How to change the width of a path using skill

SS007
SS007 over 13 years ago

 Hi,

How to change the width of a path using skill code.

I tried to chage the width of a selected Metal path using skill, but it is showing an *Error* message..

path=geGetSelSet()
(db:0x5c22b79b)

path~>width
(0.06)

 path~>width=list(0.1)
*Error* dbSetq: Invalid path width - (0.1)

 Regards

SS

 

  • Cancel
  • SS007
    SS007 over 13 years ago

    Hi,

    I've solved this by assigning directly.

    eg:  path~>width=0.1

    Thanks

    SS

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

    The reason why this is the case is because geGetSelSet() is returning a list of path objects. If you do list_of_dbIds~>width it will return a list of the width attribute values for each member of the list of dbIds - it corresponds to doing foreach(mapcar dbId list_of_dbIds dbId~>width).

    When you assign using ~>, a similar thing happens, it will iterate over the dbIds and set the width attribute on each, so:

    list_of_dbIds~>width=0.1 is effectively like doing foreach(dbId list_of_dbIds dbId~>width=0.1) (actually it's a mapcar again, because it will return the result of the assignment, but that's a detail I won't bore you with. If instead you had a list of widths:

    widthList=list(0.1 0.2)

    and had two things selected, and you wanted to set them in turn, you could do:

    foreach((dbId width) list_of_dbIds widthList dbId~>width=width)

    Hope that makes it clearer.

    Andrew

    • Cancel
    • Vote Up +1 Vote Down
    • Cancel
  • SS007
    SS007 over 13 years ago

    Thank you Andrew

    You gave me a clear picutre about it

    Regards

    Nisanth.SS

    • 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