Programmatically generate padstacks for Cadence Allegro
Use the File > Script command in Pad Designer to record your actions as you create a padstack. You can then use the resulting (ASCII) script file as a template, which you can run from the command line by invoking pad_designer with the -s argument.