• 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. How to retrieve "symbol name" using DBID

Stats

  • State Suggested Answer
  • Replies 2
  • Answers 1
  • Subscribers 19
  • Views 2365
  • Members are here 0
More Content

How to retrieve "symbol name" using DBID

WangL95
WangL95 over 3 years ago

Hi everyone,

I am a newbie. I'm learning about candace skill code and I have a question as below.

Can we use a DBID of a place_bound_top shape to retrieve corresponding "symbol name" of this place_bound_top shape?
If it's feasible, can someone help me how do it?

Example for DBID: dbid:000001352B142540

Thanks!

  • Cancel
  • Sign in to reply
  • DavidJHutchins
    0 DavidJHutchins over 3 years ago

    From a place_bound shape you can use the 'parent' pointer to access the parent symbol

    below is the journal file that shows how to get the symbol name & refdes from a place_bound shape:

    \i (00:00:11) color192
    \i (00:00:11) generaledit
    \i (00:00:14) QtSignal CVDLayerContainer CVDVisibilityOff clicked
    \i (00:00:24) QtSignal CVDLayerSplitter CVDLayersTree itemSelectionChanged Geometry "Package geometry"
    \i (00:00:31) QtSignal CVDLayerTable CVDLayerTableDelegate clickedBox "Place_Bound_Top" PkgGeo 1
    \i (00:00:31) QtSignal CVDLayerSplitter CVDLayerTable dataChanged 28 0
    \i (00:00:32) QtSignal CVDLayerSplitter CVDLayerTable selectionChanged
    \i (00:00:35) show element
    \i (00:00:38) setwindow form.find
    \i (00:00:38) FORM find all_off
    \i (00:00:40) FORM find shapes YES
    \i (00:00:42) setwindow pcb

    \i (00:03:46) skill shp1=car(axlGetSelSet())
    (00:03:46) dbid:000000D2BCA5C798
    \i (00:03:57) skill shp1->??
    (00:03:57) (prop propList:000000D2B3E1D020 priority nil autoObject
    (00:03:57) nil autoKeepoutType nil dynamicGroup nil
    (00:03:57) taper nil shapeAuto nil region
    (00:03:57) nil bBox
    (00:03:57) ((1150.0 2444.5)
    (00:03:57) (1550.0 2640.5)
    (00:03:57) ) readOnly t
    (00:03:57) voids nil net nil objType
    (00:03:57) "shape" segments
    (00:03:57) (dbid:000000D2AE058098 dbid:000000D2AE0580C0 dbid:000000D2AE0580E8 dbid:000000D2AE058110) nSegs 4
    (00:03:57) fillet nil fillPatterns nil fill
    (00:03:57) t connect nil cavity nil
    (00:03:57) branch nil fillOOD nil isRect
    (00:03:57) t layer "PACKAGE GEOMETRY/PLACE_BOUND_TOP" symbolEtch nil
    (00:03:57) parent dbid:000000D2BC0DEA28 isHole nil parentGroups
    (00:03:57) nil
    (00:03:57) )

    \i (00:04:26) skill sym_name=(shp1->parent)->name
    (00:04:26) "CONN8_A91836079"
    \i (00:04:47) skill refdes=(shp1->parent)->refdes
    (00:04:47) "J32"
    \i (00:04:50) skill exit
    (00:04:50) t
    \i (00:04:52) setwindow text
    \i (00:04:52) close
    \i (00:04:52) setwindow pcb
    \i (00:04:52) prepopup 1811.89 1871.47
    \i (00:04:53) done

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • WangL95
    0 WangL95 over 3 years ago in reply to DavidJHutchins

    Hi  David,

    I was able to do it thanks to your kind help.

    Thank you so much!

    Quang,

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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