• 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. Updating pad names with SKILL

Stats

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

Updating pad names with SKILL

MikeBR
MikeBR over 12 years ago

Hello all,

I'm a total novice at using skill skill scripting, but have a background in other languages (C++ mostly).  At my company, we have a huge database of symbols, padstacks, etc.  And would like to standardize all of them.  The only reasonable way I can see to accomplish this is to figure out how to write a script that will update every drawing automatically.

The problem I'm trying to figure out is how to take the information in a padstack (the width, height, type, etc.) and rename the padstack using that information.  So, for example, a 0.5 x 1.5 rectangular pad becomes 0p5x1p5r.pad

 Is this possible?  If so, how?

 Thanks,

 Mike

  • Sign in to reply
  • Cancel
  • aCraig
    aCraig over 12 years ago

    YOu will need to create new padstack called 0p5x1p5.pad then replace the old padstack with the new one. Look at axlDBCreatePadstack and axlReplacePadstack.

    Update: take a look at this thread. http://www.cadence.com/Community/forums/p/16922/1179240.aspx#1179240

    Craig

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • MikeBR
    MikeBR over 12 years ago

    Creating pads with CreatePadstack seems to be fairly well documented, but I'm not sure how to retrieve properties from the existing pads?

     I've used ashFindAllPins() from the examples directory to get the dbid of every pin, and can use axlDBGetPad to get the pad ID, but when I try to find the properties of the various pads using plist(pad_id), or any other variation I can find, it always returns a nil value.

     The commenters in the thread you've linked to seem to have figured this out, and it sounds like it should be simple to accomplish.  I just haven't found the right syntax for it.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • MikeBR
    MikeBR over 12 years ago

    Nevermind, I seem to have gotten it.  Just a matter of printing out dbid->?? to discover all the properties of the dbid I'm trying to change, and then calling them out when creating the new pads.

     Thanks though!

    • 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