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?
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
In reply to aCraig:
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.
In reply to MikeBR:
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.