Delete all unused padstacks in design in Expedition

Version 1

    Author (required): Nadja Ahmad

     

    Platform/Format: VBScript

     

    Use case description (required)

    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.

     

    Note:

     

    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.

     

     

    Location of the zip file: http://communities.mentor.com/docs/DOC-1993

     

    Disclaimer

    Copyright 2010 Mentor Graphics Corporation. All Rights Reserved. Recipients who obtain this code directly from Mentor Graphics use it solely for internal purposes to serve as example Java or Java Script plugins. This code may not be used in a commercial distribution. Recipients may duplicate the code provided that all notices are fully reproduced with and remain in the code. No part of this code may be modified, reproduced, translated, used, distributed, disclosed or provided to third parties without the prior written consent of Mentor Graphics, except as expressly authorized above. THE CODE IS MADE AVAILABLE "AS IS" WITHOUT WARRANTY OR SUPPORT OF ANY KIND. MENTOR GRAPHICS OFFERS NO EXPRESS OR IMPLIED WARRANTIES AND SPECIFICALLY DISCLAIMS ANY WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR WARRANTY OF NON-INFRINGEMENT. IN NO EVENT SHALL MENTOR GRAPHICS OR ITS LICENSORS BE LIABLE FOR DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS) WHETHER BASED ON CONTRACT, TORT OR ANY OTHER LEGAL THEORY, EVEN IF MENTOR GRAPHICS OR ITS LICENSORS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.