Using C# With TRANS-it Scripting

[Table of Contents]

A TRANS-it "script" is really just a .NET console application, so using C# for your script is a perfectly legitimate option.

  1. Using Visual Studio, create a new C# "Console Application".
  2. In the "Solution Explorer" add a reference to DataServices.DLL, from the Data Services installation directory.
  3. Start coding!

To open a Star Space called "My Star" in C#:

using System;
using DataServices.Logistix;

namespace MyConsoleApplication
{
class Program
{
static void Main(string[] args)
{
TruckTransformationSpace t = new TruckTransformationSpace();
t.LoadByName("My Star");
// ... etc.
}
}
}