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






Windows & Linux

Description

Attitude file for the Export Ephemeris/Attitude File Tool.

Object Model




Public Methods

Public Method ExportExports the Attitude file.
Public Method SetCoordinateAxesTypeSelects the coordinate axes to be used in the file.

Public Properties

Public Property CentralBodyNameThe central body of the satellite.
Public Property CoordinateAxesSelects a custom coordinate axes.
Public Property CoordinateAxesTypeThe coordinate axes to be used in the file.
Public Property IncludeThe details to include in the data file.
Public Property StepSizeIf the Use Ephemeris Steps option is not selected, enter a Step Size to be used for the vehicle.
Public Property SupportedCoordinateAxesReturns an array of valid choices.
Public Property TimePeriodSets 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 VersionFormatProvides 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")

© 2018 Analytical Graphics, Inc. All Rights Reserved.