sdaiGetInstanceModel

Returns the model based on an instance.

Syntax

public const string enginedll = @"engine.dll";

[DllImport(enginedll, EntryPoint = "sdaiGetInstanceModel")]
public static extern Int32 x86_sdaiGetInstanceModel(Int32 instance);

[DllImport(enginedll, EntryPoint = "sdaiGetInstanceModel")]
public static extern Int32 x64_sdaiGetInstanceModel(Int64 instance);

public static Int32 sdaiGetInstanceModel(Int64 instance)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiGetInstanceModel((Int32)instance);
				return _result;
			}
			else
			{
				return x64_sdaiGetInstanceModel(instance);
			}
		}    

Property instance

Size: 32 bit / 4 byte (value)
...