AGI STK Objects 11Send comments on this topic.
AvailableEphemSourceTypes Property (IAgPlPosCentralBody)
See Also  Example
Windows






Windows & Linux

Description

Returns an array of all available Ephemeris Source Types.

Property type

Read-only property

Syntax

[Visual Basic .NET]
Public Property AvailableEphemSourceTypes() As System.Array
[C#]
public System.Array AvailableEphemSourceTypes {get;}
[Managed C++]
public: __property System::Array^ get_AvailableEphemSourceTypes();
[Unmanaged C++]
public: HRESULT get_AvailableEphemSourceTypes(
   SAFEARRAY ** ppRetVal
);
[Java]
public Object[] getAvailableEphemSourceTypes();

Example

Configure a planet
[C#]Copy Code
planet.PositionSource = AgEPlPositionSourceType.ePosCentralBody; 
 
// Get IAgPlPosCentralBody interface 
IAgPlPosCentralBody body = planet.PositionSourceData as IAgPlPosCentralBody; 
 
body.AutoRename = false
body.CentralBody = "Jupiter"
 
// AvailableEphemSourceTypes is a one dimensional array of AgEEphemSourceType values 
if (Array.IndexOf(body.AvailableEphemSourceTypes, (int)AgEEphemSourceType.eEphemAnalytic) != -1

    body.EphemSource = AgEEphemSourceType.eEphemAnalytic; 

 

Configure a planet
[Visual Basic .NET]Copy Code
planet.PositionSource = AgEPlPositionSourceType.ePosCentralBody

' Get IAgPlPosCentralBody interface
Dim body As IAgPlPosCentralBody = TryCast(planet.PositionSourceData, IAgPlPosCentralBody)

body.AutoRename = False
body.CentralBody = "Jupiter"

' AvailableEphemSourceTypes is a one dimensional array of AgEEphemSourceType values
If Array.IndexOf(body.AvailableEphemSourceTypes, DirectCast(AgEEphemSourceType.eEphemAnalytic, Integer)) <> -1 Then
    body.EphemSource = AgEEphemSourceType.eEphemAnalytic
End If

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.