engiGetInstanceAttrType

Returns SDAI type for actual data stored in the instance for the attribute. It may be primitive type, sdaiAGGR or sdaiADB. Returns 0 for $ and *.

Syntax

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

[DllImport(enginedll, EntryPoint = "engiGetInstanceAttrType")]
public static extern Int32 x86_engiGetInstanceAttrType(Int32 instance, Int32 attribute);

[DllImport(enginedll, EntryPoint = "engiGetInstanceAttrType")]
public static extern Int32 x64_engiGetInstanceAttrType(Int64 instance, Int64 attribute);

public static Int32 engiGetInstanceAttrType(Int64 instance, Int64 attribute)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_engiGetInstanceAttrType((Int32)instance, (Int32)attribute);
				return _result;
			}
			else
			{
				return x64_engiGetInstanceAttrType(instance, attribute);
			}
		}    

Property instance

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

Property attribute

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