• 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. Can't get a skill function to pass a string in as a property...

Stats

  • Replies 3
  • Subscribers 159
  • Views 1177
  • Members are here 0
More Content

Can't get a skill function to pass a string in as a property name

wilef
wilef over 10 years ago

In the APD command window with a skill prompt this works fine:

Skill > designDBID = axlDBGetDesign()

Skill > designDBID->prop->"EIGHTY_PERCENT_TEXT_BLOCK"

return value: "37"

But this doesn't work:

Skill > propName = "EIGHTY_PERCENT_TEXT_BLOCK"

Skill > designDBID->prop->propName

return value: nil

Basically I have a skill function that passes in a property name as a string, and I want to get the value of that property on a certain DB object, but it just won't work. What am I missing? As an example, this code won't work:

propName = "EIGHTY_PERCENT_TEXT_BLOCK"

designDBID = axlDBGetDesign()

print(designDBID->prop->propName)

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

    try:  get(designDBID->prop propName)

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wilef
    wilef over 10 years ago
    No, that still doesn't work, still get nil. Thanks though.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • wilef
    wilef over 10 years ago
    Actually that did work!
    • 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