• 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. Finding bBox for current visible layer

Stats

  • Replies 2
  • Subscribers 160
  • Views 13378
  • Members are here 0
More Content

Finding bBox for current visible layer

ENEGUE
ENEGUE over 4 years ago

Hello Everyone,

Currently i am developing a skill that save and load detail. (axlDetailSave and axlDetailLoad)

Scale factor are define by user.

Thinking of move the final "detail" to specify location by it body center.

To do so, i may need to find out final "detail" bBox then with the combination of axlMidPointLine and axlCopyObject but i fail to find out the final "detail" bBox.

Any comment on how can i move the final "detail" by it body center?

or maybe how to find the bBox for final "detail"?

Eugene

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

    I think that's kind of difficult since there is no way to track the dbid's of the graphical objects created by axlDetailLoad()

    One possible way would be to add a specific property to everything in the database before using (axlDetailSave and axlDetailLoad),

    then scan the database for anything that doesn't have that property, add it to a list, then use axlDBGetExtents() on that list of objects, then delete that specific property from everything

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

    I think that's kind of difficult since there is no way to track the dbid's of the graphical objects created by axlDetailLoad()

    One possible way would be to add a specific property to everything in the database before using (axlDetailSave and axlDetailLoad),

    then scan the database for anything that doesn't have that property, add it to a list, then use axlDBGetExtents() on that list of objects, then delete that specific property from everything

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • ENEGUE
    ENEGUE over 4 years ago in reply to DavidJHutchins

    Hi David,

    Thanks for your input, i decided let user define the location by using axlEnterPoint(?prompts list("Click to paste"))  and axlUIYesNo( "look good?" ) then put them inside while loop.

    User can define location over and over until it look good..=)

    Eugene

    • 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