##Introduction

This script helps users convert DSN files to EDIF files and OLB files to XML files.

##How to use

0. This script needs to be used on a computer with OrCad Capture installed
1. Double-click `install-orcad-extension.bat` to install the plugin scripts.
2. Check if there is any error message in the bat run window.
  If there are errors, manually install the plugin as following steps:
    - Double-click `openScriptsDirectory.bat`
    - If the bat program does not open the `batchConversion` folder, you should create it manually. Create a `batchConversion` folder in the `<Cadence_Installation_Root>\tools\capture\tclscripts\capAutoLoad` directory. (Replace `<Cadence_Installation_Root>` with the installation directory of OrCad)
    - Copy the 5 `*.tcl` files to the `batchConversion` folder.
3. Restart OrCAD Capture, open a project, and click on the canvas
4. At this time, `Batch Conversion` should be in the main menu bar. If the menu item is not found, that means the installation is failed.
5. There are two menu items `Convert Sch To EDIF` and `Convert Schlib To XML` under `Batch Conversion`, taking schematic conversion as an example
6. Click "Convert Sch To EDIF", a boot pop-up window will open to batch convert the schematic into EDIF files
7. The "Source Directory" on the pop-up window indicates the folder where the source file (ie .dsn file) is located, and the "Output Directory" indicates the storage location of the converted EDIF file
8. After confirming the source folder and output folder, click "Translate" to start batch conversion of files. The script will automatically convert the ".dsn" suffix files under the source folder (including its subfolders) to the output folder.
9. After the pop-up window prompts that the conversion is over, the converted EDIF file can be viewed in the output folder. The redundant'convertLog.txt 'is a batch conversion log file, and'cap2edi.log' is a Capture log file.


##Precautions
1. It is recommended to select the path instead of manually entering the path
2. Double quotes in the path need to be removed
