Home > Community > Forums > PCB SKILL > Circle area selection?

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

 Circle area selection? 

Last post Thu, Jan 9 2014 5:39 PM by eDave. 3 replies.
Started by luanvn81 05 Jan 2014 06:54 PM. Topic has 3 replies and 4911 views
Page 1 of 1 (4 items)
Sort Posts:
  • Sun, Jan 5 2014 6:54 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 62
    • Points 940
    Circle area selection? Reply
    Hi all !

    I want to get all pins, vias, clines, vois  in a circle selection area,  but I don't know any way to do that, I only  know the function checking in box selection area ( axlSingleSelectBox).  

    My purpose : check in a circle selection area if there is any item(pins, vias, clines...) or not?

    How can I do that, please help me, my allegro is ver16.3


    Tks,
    Luan
    • Post Points: 20
  • Sun, Jan 5 2014 7:21 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: Circle area selection? Reply

    There is no function to do that. The way I would approach it is:

     

    • Use the cursor dynamics functions to allow the user to select a circle. Convert this circle to a polygon.
    • Select all the objects in the bounding box defined by the extents of the circlular polygon.
    • Step through each object, creating polygons from it, and use axlPolgonOperation to AND them with the circular polygon. If the result is not nil some part of the object is in the circle.
    Dave

     

    Dave Elder, Tait Communications
    • Post Points: 20
  • Thu, Jan 9 2014 5:30 PM

    • luanvn81
    • Top 150 Contributor
    • Joined on Fri, Sep 18 2009
    • dnai, Vietnam
    • Posts 62
    • Points 940
    Re: Circle area selection? Reply

     Hi eDave!

       Thank for your suggestion, basing on your idea, I have checked elements by  circle selection area in another ways.

    Tks,

    Luan.

    • Post Points: 20
  • Thu, Jan 9 2014 5:39 PM

    • eDave
    • Top 10 Contributor
    • Joined on Sun, Jul 13 2008
    • Christchurch, 00-NZ
    • Posts 749
    • Points 16,200
    Re: Circle area selection? Reply
    That's great. Feel free to publish your code...
    Dave Elder, Tait Communications
    • Post Points: 5
Page 1 of 1 (4 items)
Sort Posts:
Started by luanvn81 at 05 Jan 2014 06:54 PM. Topic has 3 replies.