• 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 PCB Editor
  3. How to find circle bBox?

Stats

  • Replies 2
  • Subscribers 159
  • Views 12294
  • Members are here 0
More Content

How to find circle bBox?

solene D
solene D over 4 years ago
Hello, 
following my last post, another question comes to me: how to get the bBox from the Place_Bound_Top of a circle?

I know I could do symbol->bBox but for certain reasons, this give me wrong coordinates (much larger than expected).
So I tried something else : I first get the Place_Bound_Top of a symbol and then I search its bbox.
But for a circle, this return the center point and a point on the edge of the circle, wich is obviously not what I wanted.

Here is my code: ("composant" is a symbol)

foreach(c composant->children
when(c->layer == "PACKAGE GEOMETRY/PLACE_BOUND_TOP"
foreach(item c->segments
coordonnes_PBT = cons(car(item->startEnd) coordonnes_PBT)
)
)
)
when(coordonnes_PBT != nil then
bBox_PBT = axlGeoGetBBox(coordonnes_PBT)
)

I don't know where I'm wrong.
Can anyone help me please?
Thank's


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

    try this:

    foreach(c composant->children
      when(c->layer == "PACKAGE GEOMETRY/PLACE_BOUND_TOP"
        (bBox_PBT = copy(c->bBox))
      )
    )

    • 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 very much, it's working! 

    • 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