This function closes the model. After this call no instance handles will be available including all
handles referencing the geometry of this specific file, in default compilation the model itself will
be known in the kernel, however known to be disabled. Calls containing the model reference will be
protected from crashing when called.
Syntax
public const string enginedll = @"engine.dll";
[DllImport(enginedll, EntryPoint = "sdaiCloseModel")]
public static extern void x86_sdaiCloseModel(Int32 model);
[DllImport(enginedll, EntryPoint = "sdaiCloseModel")]
public static extern void x64_sdaiCloseModel(Int64 model);
public static void sdaiCloseModel(Int64 model)
{
if (IntPtr.Size == 4)
{
x86_sdaiCloseModel((Int32)model);
}
else
{
x64_sdaiCloseModel(model);
}
}
Property model
Size: 32 bit / 4 byte (value)
The handle to the model. The model handle is static during its existance. Several models can be opened simultaniously within one session. Different models are always independent, threads are allowed to be running on different models simultaniously.