• 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. Get a size of part outline

Stats

  • Replies 9
  • Subscribers 19
  • Views 13079
  • Members are here 0
More Content

Get a size of part outline

Rascal
Rascal over 6 years ago

Hi,

I'm trying to get a size of symbol's outline

I used axlDBGetExtents, but it only answers (0:0 0:0).

Help me to get a value of symbol's outline

  • Cancel
  • Sign in to reply
  • Ejlersen
    Ejlersen over 6 years ago

    Hi

    Can you give more details? 

    Are you within a board or a symbol.

    If you're within a symbol what outline are you looking for, place_bound, dfa or something else

    Best regards

    OIe

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

    I think axlDBGetExtents only works with physical objects (such as symbol, shape, lines), not logical objects ( such as components, functions & nets )

    below is an example of getting a symbol's outline, I only have package geometry/place_bound_top visible:

    \i (00:04:27) skill db1=car(axlGetSelSet())
    (00:04:27) dbid:357367248
    \i (00:04:30) skill db1->??
    (00:04:30) (prop nil bBox
    (00:04:30) ((1756.0 1364.4)
    (00:04:30) (2980.5 1964.4)
    (00:04:30) ) readOnly
    (00:04:30) t pins
    (00:04:30) (dbid:359594208 dbid:360335600) objType "symbol"
    (00:04:30) embeddedAttach nil embeddedMethod nil embeddedLayer
    (00:04:30) nil embedded nil fixedByTestPoint nil
    (00:04:30) component dbid:357309280 xy
    (00:04:30) (1876.0 1732.5) type
    (00:04:30) "PACKAGE" rotation 0.0 refdes "FB18"
    (00:04:30) parent dbid:297174832 name "SFB1612A" definition
    (00:04:30) dbid:357356208 mirrorType "NO" isMirrored nil
    (00:04:30) etchChildren nil children
    (00:04:30) (dbid:360907216 dbid:360907296 dbid:360907376 dbid:360907464 dbid:360907552
    (00:04:30) dbid:360907640 dbid:360907720 dbid:360907800 dbid:360907880 dbid:360908432
    (00:04:30) dbid:360908664 dbid:360908920 dbid:360909152 dbid:360909344 dbid:360909536
    (00:04:30) ) parentGroups
    (00:04:30) nil
    (00:04:30) )

    \i (00:04:56) skill 'axlDBGetExtents(db1 nil)'
    (00:04:56) ((1756.0 1364.4)
    (00:04:56) (2980.5 1964.4)
    (00:04:56) )
    \i (00:05:08) skill 'axlDBGetExtents(db1 t)'
    (00:05:08) ((1803.5 1364.4)
    (00:05:08) (2980.5 1964.4)
    (00:05:08) )

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rascal
    Rascal over 6 years ago in reply to Ejlersen

    My experience of this tool is not enough that I couldn't give you a proper Information.

    Maybe, for me, place_bound is needed.

    Also, Could you explain what dfa is?

    It would be helpful for my future automation development

    Thanks

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Rascal
    Rascal over 6 years ago in reply to DavidJHutchins

    Thanks

    But I did same code, still it only showed me nil

    Is there any settings or something else that prior to get a extents from symbol ?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 6 years ago in reply to Rascal

    It's not clear what you want.

    You could try axlDBGetExtents(axlDBGetShapes("PACKAGE GEOMETRY/PLACE_BOUND_TOP"), nil)

    • Cancel
    • Vote Up +1 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