STK ObjectsSend comments on this topic.
ExecuteMultipleCommands Method (IAgStkObjectRoot)
See Also
ConnectCommands
Action
Windows





Windows & Linux

Description

Executes multiple CONNECT actions. The behavior of the method when encountering an exception varies depending on the setting of the Action parameter. See the help for AgEExecMultiCmdResultAction.

Syntax

[Visual Basic .NET]
Public Function ExecuteMultipleCommands( _
    ByVal ConnectCommands As System.Array, _
    ByVal Action As AgEExecMultiCmdResultAction _
) As IAgExecMultiCmdResult
[C#]
public IAgExecMultiCmdResult ExecuteMultipleCommands(
    System.Array ConnectCommands,
    AgEExecMultiCmdResultAction Action
);
[Managed C++]
public: IAgExecMultiCmdResult^ ExecuteMultipleCommands(
    System::Array ^ ConnectCommands,
    AgEExecMultiCmdResultAction Action
);
[Unmanaged C++]
public: HRESULT ExecuteMultipleCommands(
    SAFEARRAY * * ConnectCommands,
    AgEExecMultiCmdResultAction Action,
    IAgExecMultiCmdResult ** ppIAgExecMultiCmdResult
);
[Java]
public IAgExecMultiCmdResult executeMultipleCommands(
    AgSafeArray ConnectCommands,
    AgEExecMultiCmdResultAction Action
);
[Python - STK API ]
def ExecuteMultipleCommands(self, ConnectCommands:list, Action:"AgEExecMultiCmdResultAction") -> "IAgExecMultiCmdResult":

Parameters

ConnectCommands
Action

See Also

Example

Execute multiple Connect commands
[C#]
Array connectCommands = new object[]
    {
        "New / */Satellite MySatellite",
        "Graphics */Satellite/MySatellite SetColor red"
    };

// ExecuteMultipleCommands expect a one dimensional array of Connect commands
IAgExecMultiCmdResult result = root.ExecuteMultipleCommands(ref connectCommands, AgEExecMultiCmdResultAction.eExceptionOnError);
Execute multiple Connect commands
[Visual Basic .NET]
Dim connectCommands As Array = New Object() {"New / */Satellite MySatellite", "Graphics */Satellite/MySatellite SetColor red"}

' ExecuteMultipleCommands expect a one dimensional array of Connect commands
Dim result As IAgExecMultiCmdResult = root.ExecuteMultipleCommands(connectCommands, AgEExecMultiCmdResultAction.eExceptionOnError)
© 2024 Analytical Graphics, Inc. All Rights Reserved.