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





Description

Attitude file for the Export Ephemeris/Attitude File Tool.

Object Model




Public Methods

Public Method Export Exports the Attitude file.
Public Method SetCoordinateAxesType Selects the coordinate axes to be used in the file.

Public Properties

Public Property CentralBodyName The central body of the satellite.
Public Property CoordinateAxes Selects a custom coordinate axes.
Public Property CoordinateAxesType The coordinate axes to be used in the file.
Public Property Include The details to include in the data file.
Public Property StepSize If the Use Ephemeris Steps option is not selected, enter a Step Size to be used for the vehicle.
Public Property SupportedCoordinateAxes Returns an array of valid choices.
Public Property TimePeriod Sets the time period. Options are Use Entire Ephemeris - STK creates a data file using the Start and Stop Time specified in the vehicle's Orbit tab or Specify Time Period - STK creates a data file using the Start and Stop Time specified here.
Public Property VersionFormat Provides the option to generate files compatible with prior versions of STK.

Example

Export a vehicle attitude to an external file
[C#] Copy Code
// Set and configure attitude coordinate axes 
attitudeExport.SetCoordinateAxesType(AgEAttCoordinateAxes.eAttCoordinateAxesCustom); 
IAgVeCoordinateAxesCustom customAxes = attitudeExport.CoordinateAxes as IAgVeCoordinateAxesCustom; 
customAxes.ReferenceAxesName = "CentralBody/Sun J2000 Axes"
 
attitudeExport.VersionFormat = AgEExportToolVersionFormat.eExportToolVersionFormatCurrent; 
attitudeExport.Include = AgEAttInclude.eAttIncludeQuaternionsAngularVelocity; 
 
// Set the attitude file to use Scenario start and stop time 
attitudeExport.TimePeriod.TimePeriodType = AgEExportToolTimePeriod.eExportToolTimePeriodSpecify; 
attitudeExport.TimePeriod.Start = scenario.StartTime; 
attitudeExport.TimePeriod.Stop = scenario.StopTime; 
 
attitudeExport.StepSize.StepSizeType = AgEExportToolStepSize.eExportToolStepSizeSpecify; 
attitudeExport.StepSize.Value = 3600
 
// Save Attitude File 
attitudeExport.Export("OMExternalFileAttitude.a"); 
 

Export a vehicle attitude to an external file
[Visual Basic .NET] Copy Code
' Set and configure attitude coordinate axes
attitudeExport.SetCoordinateAxesType(AgEAttCoordinateAxes.eAttCoordinateAxesCustom)
Dim customAxes As IAgVeCoordinateAxesCustom = TryCast(attitudeExport.CoordinateAxes, IAgVeCoordinateAxesCustom)
customAxes.ReferenceAxesName = "CentralBody/Sun J2000 Axes"

attitudeExport.VersionFormat = AgEExportToolVersionFormat.eExportToolVersionFormatCurrent
attitudeExport.Include = AgEAttInclude.eAttIncludeQuaternionsAngularVelocity

' Set the attitude file to use Scenario start and stop time
attitudeExport.TimePeriod.TimePeriodType = AgEExportToolTimePeriod.eExportToolTimePeriodSpecify
attitudeExport.TimePeriod.Start = scenario.StartTime
attitudeExport.TimePeriod.[Stop] = scenario.StopTime

attitudeExport.StepSize.StepSizeType = AgEExportToolStepSize.eExportToolStepSizeSpecify
attitudeExport.StepSize.Value = 3600

' Save Attitude File
attitudeExport.Export("OMExternalFileAttitude.a")

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1