• 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. Accessing Symbol properties from SKILL

Stats

  • Replies 2
  • Subscribers 159
  • Views 14796
  • Members are here 0
More Content

Accessing Symbol properties from SKILL

ElectronMonkey
ElectronMonkey over 10 years ago

In Allegro PCB, when I do Show Element from the GUI and select a symbol, it shows something like this:

< SYMBOL>

RefDes:   R7

.

.

.

Properties attached to symbol definition

   PROP1 = blah
   PROP2 = blahblah

How do I access these properties in SKILL?  I want to read and edit/set them.  The properties are defined in the global dictionary.

p=axlSelectByProperty("symbol" "PROP1")

returns nil and does not select anything.

axlDBGetProperties()

never returns anything but nil.

Poking around on the command line investigating symbols and components has not revealed the desired properties.

First, I want to be able to read them, and then I want to modify/add these properties.

Any ideas on how I should be doing this?

Thanks.

  • Sign in to reply
  • Cancel
  • fxffxf
    fxffxf over 10 years ago

    As you indicated, the properties are on the symbol definition so you would need to do:

         p = axlSelectByProperty("symdef" "PROP1")

    If axlSelectByProperty finds dbids it returns a list of dbids, so to look at the 1st symdef in the list

        symdef = car(p)

    To get the property value

         symdef->prop->PROP1

    To delete the prop off all objects found

         axlDBDeleteProp(p '("PROP1"))

    To modify property with a new value on all objects found

         axlDBAddProp(p '("PROP1"  "foo"))

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • ElectronMonkey
    ElectronMonkey over 10 years ago

    Excellent!  Thanks, fxffxf.  Those seem to be the main pieces I was missing.

    • 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