AGI STK Objects 11 Send comments on this topic.
SetTimePeriod Method (IAgScenario)
See Also  Example
StartTime
The start time of the scenario period.
StopTime
The stop time of the scenario period.





Description

Method to set the Scenario time period. startTime/stopTime use DateFormat Dimension.

Syntax

[Visual Basic .NET]
Public Sub SetTimePeriod( _
   ByVal StartTime As System.Object, _
   ByVal StopTime As System.Object _
) 

[C#]
public void SetTimePeriod(
System.Object StartTime,
System.Object StopTime
);

[Managed C++]
public: void SetTimePeriod(
VARIANT StartTime,
VARIANT StopTime
);

[Java]
public  setTimePeriod(
Variant StartTime,
Variant StopTime
);

[Unmanaged C++]
public: HRESULT SetTimePeriod(
VARIANT StartTime,
VARIANT StopTime
);

Parameters

StartTime
The start time of the scenario period.
StopTime
The stop time of the scenario period.

Example

Change scenario time period
[MATLAB] Copy Code
% IAgStkObjectRoot root: STK Object Model Root 
root.CurrentScenario.SetTimePeriod('30 Jul 2014 16:00:05.000', '31 Jul 2014 16:00:00.000'); 
root.CurrentScenario.Epoch = '30 Jul 2014 16:00:05.000'; 
 
 

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1