• 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. Allegro X Scripting - Skill
  3. How to find dbid of all component inside a circle?

Stats

  • Replies 4
  • Subscribers 19
  • Views 9514
  • Members are here 0
More Content

How to find dbid of all component inside a circle?

solene D
solene D over 4 years ago
Hello, 
I am new to skill and I need help please.

I created a circle using axlPathStartCircle.
And now I would like to find the dbid of all component inside this circle (
even components that are not entirely in it).
But I can't find a function that allows me to do this.

Can anyone help me please?
Thank's

PS:
something else strange but unrelated: for circles, when I search for their bBox with axlGeoGetBBox, I get the center and a point on the edge of the circle. Is this normal?


  • Cancel
  • Sign in to reply
  • DavidJHutchins
    DavidJHutchins over 4 years ago

    eDave suggested a solution for this 8 years ago, search for 'Circle area selection?'

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • B Bruekers
    B Bruekers over 4 years ago

    If you are using 17.2.050 or newer then there is a select by polygon function.

    Something like this:
    axlSetFindFilter(?enabled '("noall" "shapes") ?onButtons '("shapes"))
    when(axlSelect(?prompt "select shape")
        sel = car(axlGetSelSet())
        poly = car(axlPolyFromDB(sel))
        axlClearSelSet()

        axlSetFindFilter(?enabled '("noall" "pins" "vias") ?onButtons '("pins" "vias"))
        axlAddSelectPoly(poly t)  ;t = include voids
        l_sel = axlGetSelSet()
        axlClearSelSet()

        pprintln(l_sel~>objType)
        axlHighlightObject(l_sel t)
    )

    If you change the first find filter to lines/line segs then you should be able to select the circle and get all pins and vias (other find filter) inside this circle. 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • solene D
    solene D over 4 years ago in reply to DavidJHutchins

    Thank you 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • solene D
    solene D over 4 years ago in reply to B Bruekers

    Thank you very much 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Cadence Guidelines

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