STK ObjectsSend comments on this topic.
IAgPlPosCentralBody Interface

Description

IAgPlPosCentralBody Interface.

Public Properties

Public Property AutoRenameSpecify whether the object should automatically be renamed to have the same name as the selected central body.
Public Property AvailableCentralBodiesReturns an array of all available Central Bodies.
Public Property AvailableEphemSourceTypesReturns an array of all available Ephemeris Source Types.
Public Property CentralBodyThe central body used in defining the planet object.
Public Property EphemSourceThe ephemeris source for the selected central body. A member of the AgEEphemSourceType enumeration.
Public Property JPLDEVersionReturns a JPL DE Version
Public Property RadiusThe radius of the selected central body. Uses Distance Dimension.

Interfaces

Implemented Interface
IAgPositionSourceData

CoClasses that Implement IAgPlPosCentralBody

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.