STK ObjectsSend comments on this topic.
AvailableEphemSourceTypes Property (IAgPlPosCentralBody)
See Also
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 AgSafeArray getAvailableEphemSourceTypes();
[Python - STK API ]
@property
def AvailableEphemSourceTypes(self) -> list:

See Also

Example

Configure a planet
[C#]
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]
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
© 2024 Analytical Graphics, Inc. All Rights Reserved.