• 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. abConvertPolygonToPath

Stats

  • Locked Locked
  • Replies 4
  • Subscribers 143
  • Views 14862
  • 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

abConvertPolygonToPath

beschorn
beschorn over 14 years ago

Hi, I tried to find a solution, to convert a polygon into a path. The best result gave me the skill code from Mr Beckett (abConvertPolygonToPath.ils ), but I found for some reason, it finds no "matched" path for 45deg "converted" pathes with special path width: for example: failed 2.1, 2.3, 2.4, 2.7, 2.9 ... good 2.0, 2.2, 2.5, 2.6, 2.8... the grid is 0.25/0.25 For ortogonal polygons I see no problem. Any idea Thanks Erich

Note from moderator: new version of code in this post.

  • abConvertPolygonToPath.ils.txt
  • View
  • Hide
  • Cancel
  • Andrew Beckett
    Andrew Beckett over 14 years ago

    Hi Erich,

    One way might be to undersize the results after the line:

                              (setq xorResults
                               (leLayerXor
                                cellView
                                work1 work2 work3)
                               )

    Either using dbLayerSize or leLayerSize - something like that. If you undersize the results by a small amount, it could filter out the slivers you'll get after the xor due to the small differences on the diagonal portions.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TFTIC
    TFTIC over 12 years ago

    Where are the geGetSelSet points are shown in this script?
    The polygon that I use as a test case is a plain rectangle (without asymmetries and with constant width and a specific length).
    Moreover, a question: should I select the polygon first and after use your script? Should I select specific points of polygon?
    And the last question: if I add at the end of the skill code the bindkey:
    hiSetBindKey("Layout" "<Key>F12" "abConvertPolygonToPath(())")
    is this correct? The abConvertPolygonToPath(()) is right?

    BR

    Giannis 

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

    Your bindkey should be:

    hiSetBindKey("Layout" "<Key>F12" "abConvertPolygonToPath(geGetSelSet())")

    Then it will operate on the selected shapes.

    Regards,

    Andrew.

    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
  • TFTIC
    TFTIC over 12 years ago

    Hi Andrew,

    Thank you for your consideration and your help

    BR Giannis

    • 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