AGI STK Objects 11 Send comments on this topic.
ExecSingleElements Method (IAgDataPrvTimeVar)
See Also  Example
SingleTime
The specific time value.
ElementNames
An array of element names.





Description

Computes the data given a single Time and return just the indicated data elements. SingleTime uses DateFormat Dimension.

Syntax

[Visual Basic .NET]
Public Function ExecSingleElements( _
   ByVal SingleTime As System.Object, _
   ByRef ElementNames As System.Array _
) As IAgDrResult

[C#]
public IAgDrResult ExecSingleElements(
System.Object SingleTime,
ref System.Array ElementNames
);

[Managed C++]
public: IAgDrResult^ ExecSingleElements(
VARIANT SingleTime,
System::Array ^^ ElementNames
);

[Java]
public IAgDrResult execSingleElements(
Variant SingleTime,
Object[] ElementNames
);

[Unmanaged C++]
public: HRESULT ExecSingleElements(
VARIANT SingleTime,
SAFEARRAY ** ElementNames,
IAgDrResult ** ReturnValue
);

Parameters

SingleTime
The specific time value.
ElementNames
An array of element names.

Return Type

IAgDrResult.

Example

Execute a time dependent data provider and returning the specified elements for a single time
[C#] Copy Code
Array elems = new object[] 
              { 
                  "Time"
                  "Precision Pass Number" 
              }; 
 
IAgDataPrvTimeVar dp = satellite.DataProviders["Precision Passes"as IAgDataPrvTimeVar; 
 
// ExecSingleElements expects as the second parameter a one dimensional array of element names 
IAgDrResult resInfo = dp.ExecSingleElements("1 Jan 2012 12:00:00.000"ref elems); 
 

Execute a time dependent data provider and returning the specified elements for a single time
[Visual Basic .NET] Copy Code
#If Not CSToJava Then
#Else
#End If
Dim elems As Array = New Object() {"Time", "Precision Pass Number"}

Dim dp As IAgDataPrvTimeVar = TryCast(satellite.DataProviders("Precision Passes"), IAgDataPrvTimeVar)

' ExecSingleElements expects as the second parameter a one dimensional array of element names
#If Not CSToJava Then
Dim resInfo As IAgDrResult = dp.ExecSingleElements("1 Jan 2012 12:00:00.000", elems)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1