STK ObjectsSend comments on this topic.
LoadScenario Method (IAgStkObjectRoot)
See Also
Path
The file path where the Scenario is.
Windows





Windows & Linux

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

Path
The file path where the Scenario is.

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]
© 2024 Analytical Graphics, Inc. All Rights Reserved.