AGI STK Objects 11 Send comments on this topic.
IAgVePropagatorSPICE Interface





Description

SPICE propagator interface.

Object Model


Public Methods

Public Method Propagate Propagates the satellite's path using the specified time interval.

Public Properties

Public Property AvailableBodyNames Gets a list of available body names
Public Property BodyName Body name.
Public Property EphemerisInterval The propagator's ephemeris interval.
Public Property Segments Get the segment list.
Public Property Spice Name of SPICE file.
Public Property StartTime This property is deprecated. Use EphemerisInterval to configure the propagation interval. Start time. Uses DateFormat Dimension.
Public Property Step Step size. Uses Time Dimension.
Public Property StopTime This property is deprecated. Use EphemerisInterval to configure the propagation interval. Stop time. Uses DateFormat Dimension.

Interfaces

Implemented Interface
IAgVePropagator

Example

Configure the SPICE propagator
[C#] Copy Code
// Set the SPICE file 
propagator.Spice = spiceFile; 
 
// Configure time period 
propagator.EphemerisInterval.SetExplicitInterval("1 Jan 2012 12:00:00.000""2 Jan 2012 12:00:00.000"); 
propagator.Step = 60.0
propagator.BodyName = "-200000"
 
// Propagate 
propagator.Propagate(); 
 

Set the satellite to use the SPICE propagator
[C#] Copy Code
// Set propagator to SPICE 
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE); 
 
// Get the SPICE propagator 
IAgVePropagatorSPICE propagator = satellite.Propagator as IAgVePropagatorSPICE; 
 
 

Configure the SPICE propagator
[Visual Basic .NET] Copy Code
' Set the SPICE file
propagator.Spice = spiceFile

' Configure time period
propagator.EphemerisInterval.SetExplicitInterval("1 Jan 2012 12:00:00.000", "2 Jan 2012 12:00:00.000")
propagator.[Step] = 60
propagator.BodyName = "-200000"

' Propagate
propagator.Propagate()

Set the satellite to use the SPICE propagator
[Visual Basic .NET] Copy Code
' Set propagator to SPICE
satellite.SetPropagatorType(AgEVePropagatorType.ePropagatorSPICE)

' Get the SPICE propagator
Dim propagator As IAgVePropagatorSPICE = TryCast(satellite.Propagator, IAgVePropagatorSPICE)


Set satellite propagator to SPICE and propagate
[MATLAB] Copy Code
% IAgSatellite satellite: Satellite object 
% IAgStkObjectRoot root: STK Object Model Root 
satellite.SetPropagatorType('ePropagatorSPICE'); 
propagator = satellite.propagator; 
propagator.Spice = 'C:\Program Files\AGI\STK 11\STKData\Spice\planets.bsp';   % Make sure this is a valid path 
propagator.BodyName = 'MARS'; 
 
propagator.StartTime = root.CurrentScenario.StartTime;  % Set to scenario start time 
propagator.StopTime = root.CurrentScenario.StopTime;    % Set to scenario stop time 
propagator.Step = 60.0; 
propagator.Propagate; 
 
 

CoClasses that Implement IAgVePropagatorSPICE

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1