Adding external assemblies
You can add external assemblies on the Scripts tab of the Batch Type Properties dialog box or in Tools → Options…. All the classes and methods of the assemblies that you add are available to scripts and global modules. Assemblies that you add to the properties of a batch type or a Document Definition are available only to that batch type or Document Definition. To add an assembly:- Open the Project Properties dialog box, click the Scripts tab, and then click the References .Net… button;
- In the dialog box that opens, click Add…;
- In the Add Assembly dialog box, select Attached file or Standard assembly name in the type field;
- Depending on the selected type, either specify the path to the file or the standard name.
Debugging external assemblies
When debugging external assemblies, both the assembly file and the *.pdb file with symbolic information are required. Only assemblies with loaded *.pdb files can be debugged. As *.pdb files are rather large, we recommend that you disable loading symbolic information in the working project.Registry keys that control the loading of symbolic information:
You can use the following registry keys to specify whether *.pdb files should be loaded:- HKEY_CURRENT_USER\Software\ABBYY\ScanStationFC\4.0\Shell\Script [LoadSymbolsFromOriginalPath] - Specifies whether *.pdb files should be loaded from the same folder from which the assembly has been loaded (to load *.pdb files, set the value of the key to True)
- HKEY_CURRENT_USER\Software\ABBYY\ScanStationFC\4.0\Shell\Script[PDBSearchLocations] = <path to the folder with PDB files> - Specifies the search paths where to look for *.pdb files (paths must be separated by semicolons; the search result is a *.pdb file with symbolic information, the name of the file is the same as the name of the assembly).
