DxDesigner: Check refdes prefix - report parts that don't conform with refdes prefix definition

Version 2

    This script is to scan all parts in the project and report parts whose refdes string don't conform with refdes prefix specified in the library.


    The result will be written at <project_path>\refpref.txt as below, and the script will automatically open the result via notepad.exe after getting done.

    CheckRefPrefix.jpg

     

    If you would like to remove the refdes attributes that don't match refdes prefixes, remove remark character in the line 108~111 will enable it (currently remarked)

     

    * This script is not officially supported, so please use at your own risk.

     

    '==========================================================================
    ' 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.
    '==========================================================================