getInstanceInModelling

This call is deprecated, there is no direct/easy replacement although the functionality is present. If you still use this call please contact RDF to find a solution together.

Syntax

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

[DllImport(enginedll, EntryPoint = "getInstanceInModelling")]
public static extern Int32 x86_getInstanceInModelling(Int32 model, Int32 instance, Int32 mode, out Int32 startVertex, out Int32 startIndex, out Int32 primitiveCount);

[DllImport(enginedll, EntryPoint = "getInstanceInModelling")]
public static extern Int32 x64_getInstanceInModelling(Int64 model, Int64 instance, Int64 mode, out Int64 startVertex, out Int64 startIndex, out Int64 primitiveCount);

public static Int32 getInstanceInModelling(Int64 model, Int64 instance, Int64 mode, out Int64 startVertex, out Int64 startIndex, out Int64 primitiveCount)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_getInstanceInModelling((Int32)model, (Int32)instance, (Int32)mode, out Int32 _startVertex, out Int32 _startIndex, out Int32 _primitiveCount);
				startVertex = _startVertex;
				startIndex = _startIndex;
				primitiveCount = _primitiveCount;
				return _result;
			}
			else
			{
				return x64_getInstanceInModelling(model, instance, mode, out startVertex, out startIndex, out primitiveCount);
			}
		}    

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.

Property instance

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

Property mode

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

Property startVertex

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

Property startIndex

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

Property primitiveCount

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