• 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. Keep text attachment with symbol

Stats

  • Replies 3
  • Subscribers 160
  • Views 13240
  • Members are here 0
More Content

Keep text attachment with symbol

Wonderful
Wonderful over 16 years ago

 I would have a program to adjust assembly text automatically into the center of component body, while still keeping the text attached to each symbol. If I start from symbol, I can't keep the text attachment. If I start from text, I can't get the symbol to calculate the component body size to center the text. Is there a way to get both informations? From text->parent, is there a skill function to get its parent place_bound information? Thanks in advance.

  • Sign in to reply
  • Cancel
  • redwire
    redwire over 16 years ago

    I'm going to preface my response with the fact that I am not going to "give" you the answer but hopefully the following insights will help:

    Once you locate the text object you select you need to find that text's parent object which is the symbol.  The symbol hopefully has a child layer parameter called place_bound_top (or bot) which has a bounding box (bbox) data type for that shape.  From the bbox of the place_bound you can determine its coordinates and write some code which will tell you where you can move the text to.

    You might have to use some constructs such as txtObj->parent->children wheretxtObj  is something you create that points to the text in question. The Allegro SKILL Reference is where most of this is located under the parameter database types description.  The Allegro SKILL Reference will also help you with the parameters needed to do an axlDBCreateText call to move the text to the newly calculated text position.

    Hopefully this will get you thinking in the right direction.  If not, try back here...

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

    Thanks redwire.

    I am going with that way you mentioned, and it worked. 

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

    Could you share the skill file?

    Regards,

    satya

    • 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