• 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. Suppress Errors While Automatically Exporting Padstack with...

Stats

  • Replies 5
  • Subscribers 17
  • Views 10216
  • Members are here 0
More Content

Suppress Errors While Automatically Exporting Padstack with Shape

EMperson
EMperson over 7 years ago

Hi all,

     I wrote a program that automatically exports padstacks. It starts by opening allegro with the symbol, then opens each padstack in the padstack editor. The code I use in the padstack editor looks like this: 

QtSignal MainWindow ExportXml triggered
QtFillin Blah.pxml
QtFillin Save
QtSignal MainWindow Exit triggered

However, if the padstack has a shape with an offset, an error message box pops up saying "Origin is outside or on pad edge for layer TOP, REGULAR-PAD. Changing offset to set origin at pad center". 

Is there a way to automatically exit this message, or suppress, or ignore it? I don't want the users of my program to have to click the message box, and export the padstack themselves.

Some example code, example functions, or links to information would be very helpful :)

  • Cancel
  • Sign in to reply
  • eDave
    eDave over 7 years ago

    Why not use axlPadstackToDisk?

    I avoid using scripts whenever possible as they can change between releases or hang as you have seen.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 7 years ago

    If you must use a script CPT_OFF_PAD may be the variable you need to investigate

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 7 years ago in reply to eDave

    I want the information from the padstack. Like, padstackname and all the information from both design layers, and mask layers-- width, height, figure...

    If I export a padstack to xml I can get that info.

    If I used axlPadstackToDisk to export the padstack itself,  what function should I use to get the information I want?

    Thanks!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • eDave
    eDave over 7 years ago in reply to EMperson

    eg:

    psid = axlLoadPadstack(padstackName)

    pad = axlDBGetPad(psid, layer, "REGULAR")

    pad ->??

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • EMperson
    EMperson over 7 years ago

    This link has information that does exactly what I want: https://community.cadence.com/cadence_technology_forums/f/pcb-design/24786/extracta-and-pad-files

    There is code in the link to export all information from a .pad file to a .txt file

    • 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