AGI STK Util 11 Send comments on this topic.
QueryCylindricalArray Method (IAgPosition)
See Also  Example





Description

This method is similar to QueryCylindrical but can be used by earlybound(c#, vb.net...) and latebound(scripting languages) clients. The array returns the values in the order Radius(index 0), Lon(index 1) and Z(index 2).

Syntax

[Visual Basic .NET]
Public Function QueryCylindricalArray() As System.Array

[C#]
public System.Array QueryCylindricalArray();

[Managed C++]
public: System::Array QueryCylindricalArray();

[Java]
public Object[] queryCylindricalArray();

[Unmanaged C++]
public: HRESULT QueryCylindricalArray(
SAFEARRAY ** Array
);

Example

This example shows how to get the cylindrical position of a facility using the QueryCylindricalArray in vbscript.
Retrieving cylindrical coordinates of a facility [VBScript] Copy Code
set pos = facility.Position
cylArray = pos.QueryCylindricalArray()
radius = cylArray(0) ' Radius
longitude = cylArray(1) ' Longitude
z = cylArray(2) ' Z

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1