Expedition PCB DR/WA : Delete all unused padstacks in the design.

Document created by Nadia_Ahmad on May 14, 2010Last modified by Nadia_Ahmad on May 14, 2010
Version 3Show Document
  • View in full screen mode

This script deletes all unused Padstacks in the design.  This script is provided in lieu of DR 148533 -"Description: Using the Forward Annotation option 'Delete Local Library data; then rebuild all local library data' does not delete the unused Padstack data".


Download the attached script and drag and drop this script onto the Expedition design.  A logfile will be generated showing which Padstacks have been deleted and which remained due to errors.




  1. If a padstack is not placed in the design but used in a local cell (unused cell), then that padstack is not deleted unless that unused cell is deleted first.  This is why it could be necessary to first run Forward Annotation with "Delete local data and rebuild...." option first to remove all unused Parts and Cells before running this script.
  2. If a padstack is used in Setup_Parameters/NetClasses/CES but is not placed in the design, then that padstack is not deleted, unless it is removed from NetClasses/CES-->Via Assigment tab OR from Allowed via list in Setup Parameters dialog. 


' DISCLAIMER OF WARRANTY:  Unless otherwise agreed in writing,
' Mentor Graphics software and associated files are provided "as is"
' and without warranty.  Mentor Graphics has no obligation to support
' or otherwise maintain software.  Mentor Graphics makes no warranties,
' express or implied with respect to software including any warranty
' of merchantability or fitness for a particular purpose.
' LIMITATION OF LIABILITY: Mentor Graphics is not liable for any property
' damage, personal injury, loss of profits, interruption of business, or for
' any other special, consequential or incidental damages, however caused,
' whether for breach of warranty, contract, tort (including negligence),
' strict liability or otherwise. In no event shall Mentor Graphics'
' liability exceed the amount paid for the product giving rise to the claim.