Home > Community > Forums > PCB SKILL > subtracting two touching shapes

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: *

 subtracting two touching shapes 

Last post Wed, Mar 28 2012 11:36 PM by rumar. 4 replies.
Started by rumar 27 Mar 2012 01:41 AM. Topic has 4 replies and 2637 views
Page 1 of 1 (5 items)
Sort Posts:
  • Tue, Mar 27 2012 1:41 AM

    • rumar
    • Not Ranked
    • Joined on Wed, Dec 7 2011
    • Posts 6
    • Points 90
    subtracting two touching shapes Reply

    hi

    I'm having two shapes which touch each other and I'd like to subtract one from the other. Unfortunately the axlDBCreateVoid command doesn't work because the shape to be subtracted needs to be completely inside the other shape. Cite from the help:

    "All void boundaries are completely within the boundary of their parent shape"

    Anyone having an idea how I can achieve this?

    Thanks

    Marcel

    • Post Points: 20
  • Tue, Mar 27 2012 7:12 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 129
    • Points 2,125
    Re: subtracting two touching shapes Reply

    Have you looked at axlPolyOperation?

     Craig

    • Post Points: 20
  • Tue, Mar 27 2012 7:56 AM

    • rumar
    • Not Ranked
    • Joined on Wed, Dec 7 2011
    • Posts 6
    • Points 90
    Re: subtracting two touching shapes Reply

    thanks for your reply. I guess I could do something like (axlPolyOperation poly1_list poly2_list 'AND) and then use the result to create a void in the first shape. But this note in the help doesn't sound very trustworthy:

    This function is provided "as-is". Result, in certain cases, may fail or deliver incorrect results. No commitment can be made to address issues uncovered when using this API.

    • Post Points: 20
  • Wed, Mar 28 2012 11:58 AM

    • aCraig
    • Top 50 Contributor
    • Joined on Sat, Aug 16 2008
    • Pepperell, MA
    • Posts 129
    • Points 2,125
    Re: subtracting two touching shapes Reply

     I think that applies to very complex shapes. I've written my own Segmets Over Voids application and it works fine.

     Craig

    • Post Points: 20
  • Wed, Mar 28 2012 11:36 PM

    • rumar
    • Not Ranked
    • Joined on Wed, Dec 7 2011
    • Posts 6
    • Points 90
    Re: subtracting two touching shapes Reply

    thank you very much for the answer. I will definitely give it a try.

    Marcel

    • Post Points: 5
Page 1 of 1 (5 items)
Sort Posts:
Started by rumar at 27 Mar 2012 01:41 AM. Topic has 4 replies.