AGI STK Objects 11 Send comments on this topic.
SaveScenarioAs Method (IAgStkObjectRoot)
See Also  Example
ScFileName
Saves the scenario to this file name.
Windows






Windows & Linux

Description

Use SaveAs method. Saves the changes made to the scenario to a specified path and file name.

Syntax

[Visual Basic .NET]
Public Sub SaveScenarioAs( _
   ByVal ScFileName As String _
) 

[C#]
public void SaveScenarioAs(
string ScFileName
);

[Managed C++]
public: void SaveScenarioAs(
String __gc ^ ScFileName
);

[Java]
public  saveScenarioAs(
String ScFileName
);

[Unmanaged C++]
public: HRESULT SaveScenarioAs(
BSTR ScFileName
);

Parameters

ScFileName
Saves the scenario to this file name.

Example

Save a scenario to a new location (Save as)
[C#] Copy Code
root.SaveScenarioAs(fileName); 
 

Save a scenario to a new location (Save as)
[Visual Basic .NET] Copy Code
root.SaveScenarioAs(fileName)

See Also

© 2017 Analytical Graphics, Inc. All Rights Reserved.

STK 11.2.1 Programming Interface