STK ObjectsSend comments on this topic.
CloseScenario Method (IAgStkObjectRoot)
See Also
Windows





Windows & Linux

Description

Closes the scenario. The method throws an exception if no scenario has been loaded.

Syntax

[Visual Basic .NET]
Public Sub CloseScenario()
[C#]
public void CloseScenario();
[Managed C++]
public: void CloseScenario();
[Unmanaged C++]
public: HRESULT CloseScenario();
[Java]
public void closeScenario();
[Python - STK API ]
def CloseScenario(self) -> None:

See Also

Example

Close a scenario
[C#]
root.CloseScenario();
Close a scenario
[Visual Basic .NET]
root.CloseScenario()
Close an open Scenario
[Python - STK API]
# IAgStkObjectRoot root: STK Object Model Root
root.CloseScenario()

Close an open Scenario
[MATLAB]
% IAgStkObjectRoot root: STK Object Model Root
if ~isempty(root.CurrentScenario)
    root.CloseScenario();
end


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.