STK ObjectsSend comments on this topic.
IAgSaExportTools Interface

Description

Interface used to define the export to data file options.

Public Methods

Public Method GetAttitudeExportToolAn Attitude file for export.
Public Method GetEphemerisCCSDSExportToolAn Ephemeris file of the CCSDS ephemeris type for export.
Public Method GetEphemerisCCSDSv2ExportToolAn Ephemeris file of the CCSDS v2 ephemeris type for export.
Public Method GetEphemerisCode500ExportToolAn Ephemeris file of the Code500Ephem ephemeris type for export; AgAsCode500.dll must be copied to your install data's 'Modules' directory.
Public Method GetEphemerisSpiceExportToolAn Ephemeris file of the Spice ephemeris type for export.
Public Method GetEphemerisStkBinaryExportToolAn Ephemeris file of the STK Binary ephemeris type for export.
Public Method GetEphemerisStkExportToolAn Ephemeris file of the STK ephemeris type for export.
Public Method GetPropDefExportToolA Propagator (Prop Def) file for export.

Example

Export an ephemeris file to scenario folder
[Python - STK API]
# IAgStkObjectRoot root: STK Object Model Root
# IAgSatellite satellite: Satellite object
scenPath = root.ExecuteCommand('GetDirectory / Scenario').Item(0)
satelliteFilePath = '%s\%s.e' % (scenPath, satellite.InstanceName)
satelliteFilePath = satelliteFilePath.replace("\\", "\\\\")
satellite.ExportTools.GetEphemerisStkExportTool().Export(satelliteFilePath)

Export an ephemeris file to scenario folder
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
% IAgSatellite satellite: Satellite object
scenPath = root.ExecuteCommand('GetDirectory / Scenario').Item(0);
satelliteFilePath = [scenPath '\' satellite.InstanceName '.e'];
satellite.ExportTools.GetEphemerisStkExportTool.Export(satelliteFilePath);


        
© 2023 Analytical Graphics, Inc. All Rights Reserved.