Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt

Use this file to discover all available pages before exploring further.

You can use external assemblies in scripts and global modules. Both standard and user-compiled assemblies are supported. Every class and method in an attached assembly becomes available to your scripts.

Where to attach an assembly

Assemblies can be attached in two places:
  • On the Scripts tab of the Batch Type Properties dialog box — the assemblies are available only to that batch type.
  • In Tools > Options… — the assemblies are available globally to all scripts and global modules.

Attach an assembly

  1. Open the Project Properties dialog box, click the Scripts tab, then click References .NET….
  2. In the dialog that opens, click Add….
  3. In the Add Assembly dialog box, choose the source in the type field:
    • Attached file — specify the path to the file.
    • Standard assembly name — specify the standard name.

Example

Here’s a sample assembly with a namespace, class, and method:
namespace TestNameSpace
{
    public class Test
    {
        public void Show(string text)
        {
            // Shows a message using the static method System.Windows.Forms.MessageBox.Show(string).
            System.Windows.Forms.MessageBox.Show(text);
        }
    }
}
To use the class from a script:
TestNameSpace.Test test = new TestNameSpace.Test(); // create an instance of Test
test.Show("Hello world"); // call the Show method