Description
This method is similar to QueryCartesian but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order X(index 0), Y(index 1) and Z(index 2).
Syntax
[Visual Basic .NET] |
---|
Public Function QueryCartesianArray() As
|
[C#] |
---|
public System.Array QueryCartesianArray();
|
[Managed C++] |
---|
public: System::Array QueryCartesianArray();
|
[Java] |
---|
public VariantArray queryCartesianArray();
|
[Unmanaged C++] |
---|
public: HRESULT QueryCartesianArray(
SAFEARRAY * * ppRetVal
);
|
Return Type
A one dimensional array containing three values X, Y and Z.
See Also
Example
This example shows how to get the cartesian position of a facility using the QueryCartesianArray in vbscript.
Retrieving cartesian coordinates of a facility [VBScript] |
---|
set pos = facility.Position cartArray = pos.QueryCartesianArray() x = cartArray(0) ' X y = cartArray(1) ' Y z = cartArray(2) ' Z
|
|