Skip to main content
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, and 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:
To use the class from a script: