Sequentum Enterprise provides a default procedure for developing scripts in Visual Studio. The build-in script editor in Sequentum Enterprise does not provide advanced development tools such as a debugger, so we recommend you build large scripts in Visual Studio and smaller scripts in the built-in script editor.
When you add a script in Sequentum Enterprise, you can select to use a script library. The script library is a normal .NET class library that contains classes and methods for all types of scripts in Sequentum Enterprise. When using a Script Library, Sequentum Enterprise will automatically call the specific methods in the .NET class library.
Agent or Shared Script Library
Sequentum Enterprise supports two types of script libraries, a script library that is shared between all agents in the same folder, and a script library that is used only for a specific agent.
The shared script library assembly must be placed in a folder named Shared with the same parent folder as all the agents sharing the library. For example, if the agents are placed in the default agent folder My Documents\Content Grabber\Agents, The shared folder must be My Documents\Content Grabber\Agents\Shared.
The agent script library assembly must be placed in the Assemblies sub-folder of an agent folder.
Visual Studio Solution Template
Sequentum Enterprise provides a Visual Studio 2013+ solution with a project that contains all the required classes and methods for a default script library. When you click the button Open Project in C# or Open Project in VB.NET , Sequentum Enterprise will automatically copy the solution and projects to your agent's Visual Studio folder or to the shared Visual Studio folder if you are using a shared script library. The Visual Studio solution also contains a test project you can use to test the functionality in your script library.
When you build the Visual Studio solution in release mode, the script library assembly is automatically copied to the right location so it's picked up by Sequentum Enterprise when you run an agent. When Sequentum Enterprise loads the script library it will become locked and you will need to close Sequentum Enterprise before you can build the library in release mode. The debug version of the library is not locked by Sequentum Enterprise, because it's not copied to any of the Sequentum Enterprise Assemblies folders, and will not be used by your agents by default.