STK ObjectsSend comments on this topic.
IAgVeAttitudeExportTool Interface

Description

Attitude file for the Export Ephemeris/Attitude File Tool.

Public Methods

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

Public Properties

Public Property CentralBodyNameGet the central body of the satellite.
Public Property CoordinateAxesSelects a custom coordinate axes.
Public Property CoordinateAxesTypeGet the coordinate axes to be used in the file.
Public Property IncludeGets or sets the 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#]
// 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]
' 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")
© 2024 Analytical Graphics, Inc. All Rights Reserved.