• 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. Wanted to update the Padstack Definition for existing P...

Stats

  • State Suggested Answer
  • Replies 1
  • Answers 1
  • Subscribers 14
  • Views 634
  • Members are here 0
More Content

Wanted to update the Padstack Definition for existing Padstacks

Hussain Aalim
Hussain Aalim 9 months ago

Hi,

Can anyone help me with the skill code to update the Padstack Definition for existing Padstacks as shown below:

Wanted to update these three layers with the size of the Anti Pad and wanted to keep the remaining same.

Thanks in advance

  • Sign in to reply
  • Cancel
  • SaiPavanl
    0 SaiPavanl 9 months ago

    Programmatically, you cannot modify a padstack, as it is read-only. So, you need to copy the pads and then make modifications. The function to copy a pad is shown below. You need to find the layer of the pad and decide the parameters to copy depending on whether the figureName is FLASH or not. For FLASH, copy the name to ?flash; else, copy inPad ->figureName to figure.

    (procedure copyPad(inPad)
    (let (layer subClassName className)
    layer = parseString(inPad ->layer "/")
    ;printf("layer is %L\n" layer)
    className = car(layer)
    subClassName = cadr(layer)
    size=getPadFigureSize(inPad)
    (if inPad->figureName == "FLASH" then
    newPad = make_axlPadStackPad(?layer subClassName,
    ?type inPad ->type
    ?figureSize size
    ?figure 'FLASH
    ?flash inPad ->flash
    ?offset inPad ->offset
    )
    else
    newPad = make_axlPadStackPad(?layer
    subClassName,
    ?type inPad ->type,
    ?figureSize size
    ?figure inPad ->figureName
    ?offset inPad ->offset
    )
    );if
    newPad
    );let
    );procedure

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