> ## 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.

# External assemblies

> Attach .NET assemblies to Scanning Station scripts and global modules — per batch type or globally.

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](/vantage/documentation/scanning-station/interface/batch-type-properties-dbox) 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:

```csharp theme={null}
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:

```csharp theme={null}
TestNameSpace.Test test = new TestNameSpace.Test(); // create an instance of Test
test.Show("Hello world"); // call the Show method
```

## Related topics

* [Using scripts](/vantage/documentation/scanning-station/admin/using-scripts)
* [Scripts in .NET languages](/vantage/documentation/scanning-station/admin/specific-net-scripts)
* [Batch Type Properties dialog box](/vantage/documentation/scanning-station/interface/batch-type-properties-dbox)
* [Administrator mode](/vantage/documentation/scanning-station/admin/admin-mode)
