internalGetInstanceFromP21Line

Returns an instance based on the model and STEP/Express ID

Syntax

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

[DllImport(enginedll, EntryPoint = "internalGetInstanceFromP21Line")]
public static extern Int64 x86_internalGetInstanceFromP21Line(Int32 model, Int64 P21Line);

[DllImport(enginedll, EntryPoint = "internalGetInstanceFromP21Line")]
public static extern Int64 x64_internalGetInstanceFromP21Line(Int64 model, Int64 P21Line);

public static Int64 internalGetInstanceFromP21Line(Int64 model, Int64 P21Line)
		{
			if (IntPtr.Size == 4)
			{
				var _result = x86_internalGetInstanceFromP21Line((Int32)model, P21Line);
				return _result;
			}
			else
			{
				return x64_internalGetInstanceFromP21Line(model, P21Line);
			}
		}    

Property model

Size: 64 bit / 8 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 P21Line

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