Description
Use Load method. Loads a scenario using the specified path. The method throws an exception if there is a scenario already loaded.
Syntax
| [Visual Basic .NET] |
|---|
Public Sub LoadScenario( _
ByVal Path As String _
)
|
| [C#] |
|---|
public void LoadScenario(
string Path
);
|
| [Managed C++] |
|---|
public: void LoadScenario(
String __gc ^ Path
);
|
| [Unmanaged C++] |
|---|
public: HRESULT LoadScenario(
BSTR Path
);
|
| [Java] |
|---|
public void loadScenario(
String Path
);
|
[Python - STK API ] |
|---|
def LoadScenario(self, Path:str) -> None:
|
Parameters
See Also
Example
Load a scenario (closing the current scenario if necessary)
| [C#] |
|---|
// close current scenario
if (root.CurrentScenario != null)
{
root.CloseScenario();
}
root.LoadScenario(scenarioLocation);
|
|
Load a scenario (closing the current scenario if necessary)
| [Visual Basic .NET] |
|---|
' close current scenario
If root.CurrentScenario IsNot Nothing Then
root.CloseScenario()
End If
root.LoadScenario(scenarioLocation)
|
|