• 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. Getting the BBox of a rotated component

Stats

  • Replies 4
  • Subscribers 159
  • Views 13748
  • Members are here 0
More Content

Getting the BBox of a rotated component

LSIpkgCad
LSIpkgCad over 16 years ago

Does anyone have a method for getting the absolute coordinates for the vertices of a rotated component/symbol?  If you query the DBID itself, you can get the BBox and the rotation.  E.g.

                                   componentDBID->symbol->bBox     AND     componentDBID->symbol->rotation

However, the vertices reported in the BBox are the extents of the symbol with a 0 degree rotation.  It seems the only way to get the absolute coordinates for the vertices of the component in its rotated position, you'd need to do some trigonometry.  Anyone out there with a better way or perhaps... a code snippet to do the calculations?

THANKS MUCH!!!!

  • Sign in to reply
  • Cancel
Parents
  • LSIpkgCad
    LSIpkgCad over 16 years ago

    Yes, I understood about the extents issues but left them off the post for succinctness.  However, your reference to "axlGeoRotatePt" is what I was missing... and that's what will provide what I'm after!!  THANKS!! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • LSIpkgCad
    LSIpkgCad over 16 years ago

    Yes, I understood about the extents issues but left them off the post for succinctness.  However, your reference to "axlGeoRotatePt" is what I was missing... and that's what will provide what I'm after!!  THANKS!! 

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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