sdaiInsertNestedAggrByIndex

The function creates an aggregate instance as a member of the specified ordered aggregate instance. The newly created aggregate is inserted into the aggregate at the position referenced by the specified index.

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiInsertNestedAggrByIndex")]
public static extern Int64 x86_sdaiInsertNestedAggrByIndex(Int32 aggregate, Int32 index);

[DllImport(enginedll, EntryPoint = "sdaiInsertNestedAggrByIndex")]
public static extern Int64 x64_sdaiInsertNestedAggrByIndex(Int64 aggregate, Int64 index);

public static Int64 sdaiInsertNestedAggrByIndex(Int64 aggregate, Int64 index)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiInsertNestedAggrByIndex((Int32)aggregate, (Int32)index);
				return _result;
			}
			else
			{
				return x64_sdaiInsertNestedAggrByIndex(aggregate, index);
			}
		}    

Property aggregate

Size: 64 bit / 8 byte (reference)
...

Property index

Size: 64 bit / 8 byte (value)
...