How to apply 3rd party library in C# workspace scripting node in TIBCO Statistica?

How to apply 3rd party library in C# workspace scripting node in TIBCO Statistica?

book

Article ID: KB0074263

calendar_today

Updated On:

Products Versions
Spotfire Statistica 13.2 and higher

Description

This article provides instructions on how to use 3rd party library in C# workspace scripting node.

Issue/Introduction

How to apply 3rd party library in C# workspace scripting node in TIBCO Statistica?

Environment

Windows

Resolution

There are 3 different ways available to apply 3rd party library in C# workspace scripting node:

Let's take sbdf Spotfire library as example:

1. The assembly can be added to the Global Assembly Cache and then referenced directly in the C# script as follows:

#r Spotfire.Dxp.Data.Formats.Sbdf

To add an assembly to the GAC, please see here.

2. The assembly can be placed in Statistica's installation folder and then the DLL can be referenced in the C# script as follows:

# "Spotfire.Dxp.Data.Formats.Sbdf.dll"

3. The assembly can be placed in a disk location which is accessible to Statistica (for e.g. C:\Folder1\Folder2\Folder3) and then referenced in the script as follows:

#r "C:\Folder1\Folder2\Folder3\Spotfire.Dxp.Data.Formats.Sbdf.dll"

The #r directive(s) have to be placed at the top of the C# script. 

Example: