An instance is an access to InstantTerra software. It controls InstantTerra with the C# code.
Once the InstantTerraAPI reference was added (see First steps in Instant Terra C# API), you can write the following code:
using InstantTerraApi;
namespace TestingApi
{
//*****************************************************************************
//*****************************************************************************
class Program
{
//*****************************************************************************
//*****************************************************************************
static void Main()
{
// Create an instance of InstantTerra
InstantTerra instantTerra = new InstantTerra();
// Close InstantTerra
instantTerra.Close();
}
}
}
To access to API objects and functions, you should use the namespace InstantTerraApi.
Once done, create the instance: InstantTerra instantTerra
= new
InstantTerra();
.
The instance is fully initialized when the InstantTerra window is open.
// Close InstantTerra
instantTerra.Close();
To close our instance correctly, simply call the method
Close()
.
This closes the InstantTerra window automatically.
Copyright © 2022 · All Rights Reserved · Wysilab