PhaseCollection#
- class ansys.stk.core.stkobjects.aviator.PhaseCollection#
Class defining the collection of phases.
Overview#
Given an index, returns an element in the collection. |
|
Add a phase at the end of the mission. |
|
Add a phase at the given index. |
|
Remove given phase. |
|
Remove phase at the given index. |
Examples#
Add a new phase and use the same performance models as the first phase
# PhaseCollection 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].copy_performance_models()
newPhase.paste_performance_models()
Import detail#
from ansys.stk.core.stkobjects.aviator import PhaseCollection
Property detail#
- property PhaseCollection._new_enum: EnumeratorProxy#
Return an enumerator that can iterate through the collection.
Method detail#
- PhaseCollection.item(self, index: int) Phase #
Given an index, returns an element in the collection.
- Parameters:
index :
int
- Returns:
Phase
- PhaseCollection.add_at_index(self, index: int) Phase #
Add a phase at the given index.
- Parameters:
index :
int
- Returns:
Phase