AGI STK Astrogator 11 Send comments on this topic.
Insert Method (IAgVAMCSSegmentCollection)
See Also 
SegmentType
SegmentName
SegmentToInsertBefore





Description

Adds a segment to the segment collection.

Syntax

[Visual Basic .NET]
Public Function Insert( _
   ByVal SegmentType As AgEVASegmentType, _
   ByVal SegmentName As String, _
   ByVal SegmentToInsertBefore As String _
) As IAgVAMCSSegment

[Managed C++]
public: IAgVAMCSSegment^ Insert(
AgEVASegmentType SegmentType,
String __gc ^ SegmentName,
String __gc ^ SegmentToInsertBefore
);

[Unmanaged C++]
public: HRESULT Insert(
AgEVASegmentType SegmentType,
BSTR SegmentName,
BSTR SegmentToInsertBefore,
IAgVAMCSSegment ** ReturnValue
);

Parameters

SegmentType
Member Value Description
eVASegmentTypeInitialState 0 Initial State - can be used to define the initial conditions of your MCS, or of a subsequence within the MCS.
eVASegmentTypeLaunch 1 Launch - can be used to model a simple spacecraft launch from Earth or another central body.
eVASegmentTypeManeuver 2 Maneuver - can be used to model a spacecraft maneuver.
eVASegmentTypeFollow 3 Follow - can be used to set the spacecraft to follow another vehicle (Satellite, Launch Vehicle, Missile, Aircraft, Ship, or Ground Vehicle) at a specified offset, and to separate from that vehicle upon meeting specified conditions.
eVASegmentTypeHold 4 Hold - can be used to model landing or rendezvous operations by setting the spacecraft to maintain a fixed position in reference to another object or body, until meeting specified conditions.
eVASegmentTypePropagate 5 Propagate - can be used to model the movement of the spacecraft along its current trajectory until meeting specified stopping conditions.
eVASegmentTypeSequence 6 Sequence - can be used to organize segments and define the nature of the results that are passed on to the next segment or sequence in the MCS.
eVASegmentTypeReturn 7 Return - can be used to control the execution of the Mission Control Sequence by returning control to its parent segment.
eVASegmentTypeTargetSequence 8 Target Sequence - can be used to define maneuvers and propagations in terms of the goals they are intended to achieve.
eVASegmentTypeStop 9 Stop - can be used to control the execution of the Mission Control Sequence by halting execution of the MCS.
eVASegmentTypeUpdate 10 Update - can be used to modify some of the satellite properties to reflect changes that occur during the mission.
eVASegmentTypeBackwardSequence 11 Backward Sequence - can be used to organize segments and define the nature of the results that are passed on to the next segment or sequence in the MCS.
eVASegmentTypeEnd 12 End - The End segment is a default segment of the MCS that functions similarly to a Return segment; it returns control to the beginning of the MCS. The End segment cannot be disabled or deleted, nor can any segments be inserted into the MCS after it.
SegmentName
SegmentToInsertBefore

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1