STK AviatorSend comments on this topic.
IAgAvtrPhaseCollection Interface

Description

Interface used to access the collection of phases for a mission.

Public Methods

Public Method AddAdds a phase at the end of the mission.
Public Method AddAtIndexAdds a phase at the given index.
Public Method RemoveRemove given phase.
Public Method RemoveAtIndexRemove phase at the given index.

Public Properties

Public Property CountReturns the number of elements in a collection.
Public Property ItemGiven an index, returns an element in the collection.

CoClasses that Implement IAgAvtrPhaseCollection

Example

Add a new phase and use the same performance models as the first phase
[C#]
// Add a new phase at the end of the mission
IAgAvtrPhase newPhase = phases.Add();
// Rename the phase
newPhase.Name = "New Phase";
// Copy the performance models from the first phase and paste it to the new phase
phases[0].CopyPerformanceModels();
newPhase.PastePerformanceModels();
Add a new phase and use the same performance models as the first phase
[Visual Basic .NET]
' Add a new phase at the end of the mission
Dim newPhase As IAgAvtrPhase = phases.Add()
' Rename the phase
newPhase.Name = "New Phase"
' Copy the performance models from the first phase and paste it to the new phase
phases(0).CopyPerformanceModels()
newPhase.PastePerformanceModels()
Add a new phase and use the same performance models as the first phase
[Python - STK API]
      # IAgAvtrPhases phases: Phase Collection object
# Add a new phase at the end of the mission
newPhase = phases.Add()
# Rename the phase
newPhase.Name = 'New Phase'
# Copy the performance models from the first phase and paste it to the new phase
phases[0].CopyPerformanceModels()
newPhase.PastePerformanceModels()

Add a new phase and use the same performance models as the first phase
[MATLAB]
% IAgAvtrPhases phases: Phase Collection object
% Add a new phase at the end of the mission
newPhase = phases.Add();
% Rename the phase
newPhase.Name = 'New Phase';
% Copy the performance models from the first phase and paste it to the new phase
phases.Item(0).CopyPerformanceModels();
newPhase.PastePerformanceModels();


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.