AGI STK Objects 11 Send comments on this topic.
ExecElements Method (IAgDataPrvFixed)
See Also  Example
ElementNames
An array of element names.





Description

Computes the data and returns just the indicated data elements; fixed data providers do not require arguments.

Syntax

[Visual Basic .NET]
Public Function ExecElements( _
   ByRef ElementNames As System.Array _
) As IAgDrResult

[C#]
public IAgDrResult ExecElements(
ref System.Array ElementNames
);

[Managed C++]
public: IAgDrResult^ ExecElements(
System::Array ^^ ElementNames
);

[Java]
public IAgDrResult execElements(
Object[] ElementNames
);

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

Parameters

ElementNames
An array of element names.

Example

[Visual Basic .NET] Copy Code
Dim ElemNames() As String = {"Start Time", "Stop Time"}
ADR = app.Children("Scenario1").Children("Satellite1").DataProviders("Cartesian Position").ExecElements(ElemNames)
Execute a non time dependent data provider (for instance facility position) and request only the specified elements
[C#] Copy Code
Array elems = new object[] 
              { 
                  "x""z" 
              }; 
 
IAgDataPrvFixed dpInfo = facility.DataProviders["Cartesian Position"as IAgDataPrvFixed; 
 
// ExecElements expects a one dimensional array of element names 
IAgDrResult resInfo = dpInfo.ExecElements(ref elems); 
 

Execute a non time dependent data provider (for instance facility position) and request only the specified elements
[Visual Basic .NET] Copy Code
#If Not CSToJava Then
#Else
#End If
Dim elems As Array = New Object() {"x", "z"}

Dim dpInfo As IAgDataPrvFixed = TryCast(facility.DataProviders("Cartesian Position"), IAgDataPrvFixed)

' ExecElements expects a one dimensional array of element names
#If Not CSToJava Then
Dim resInfo As IAgDrResult = dpInfo.ExecElements(elems)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1