Home > Community > Forums > Custom IC SKILL > abConvertPolygonToPath

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 abConvertPolygonToPath 

Last post Wed, May 8 2013 1:00 AM by TFTIC. 4 replies.
Started by beschorn 04 Feb 2011 12:54 AM. Topic has 4 replies and 2074 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, Feb 4 2011 12:54 AM

    • beschorn
    • Not Ranked
    • Joined on Wed, Feb 2 2011
    • Ismaning, Bavaria
    • Posts 5
    • Points 115
    abConvertPolygonToPath Reply
    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
    • Post Points: 20
  • Fri, Feb 4 2011 1:31 AM

    Re: abConvertPolygonToPath Reply

    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.

    • Post Points: 20
  • Tue, May 7 2013 4:22 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: abConvertPolygonToPath.ils Reply

    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 

    • Post Points: 20
  • Tue, May 7 2013 3:12 PM

    Re: abConvertPolygonToPath.ils Reply

    Your bindkey should be:

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

    Then it will operate on the selected shapes.

    Regards,

    Andrew.

    • Post Points: 20
  • Wed, May 8 2013 1:00 AM

    • TFTIC
    • Not Ranked
    • Joined on Fri, Oct 19 2012
    • ATHENS, Athens Greece
    • Posts 12
    • Points 180
    Re: abConvertPolygonToPath.ils Reply

    Hi Andrew,

    Thank you for your consideration and your help

    BR Giannis

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by beschorn at 04 Feb 2011 12:54 AM. Topic has 4 replies.