sdaiFindInstanceUsedIn

The function returns the identifiers of all the entity instances in the defined domain that reference the specified entity instance by the specified attribute (role).

Syntax

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

[DllImport(enginedll, EntryPoint = "sdaiFindInstanceUsedIn")]
public static extern Int64 x86_sdaiFindInstanceUsedIn(Int32 instance, Int32 role, Int32 domain, Int32 resultList);

[DllImport(enginedll, EntryPoint = "sdaiFindInstanceUsedIn")]
public static extern Int64 x64_sdaiFindInstanceUsedIn(Int64 instance, Int64 role, Int64 domain, Int64 resultList);

public static Int64 sdaiFindInstanceUsedIn(Int64 instance, Int64 role, Int64 domain, Int64 resultList)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_sdaiFindInstanceUsedIn((Int32)instance, (Int32)role, (Int32)domain, (Int32)resultList);
				return _result;
			}
			else
			{
				return x64_sdaiFindInstanceUsedIn(instance, role, domain, resultList);
			}
		}    

Property instance

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

Property role

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

Property domain

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

Property resultList

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