AGI STK Objects 11 Send comments on this topic.
ExecuteMultipleCommands Method (IAgStkObjectRoot)
See Also  Example
ConnectCommands
Action





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( _
   ByRef ConnectCommands As System.Array, _
   ByVal Action As AgEExecMultiCmdResultAction _
) As IAgExecMultiCmdResult

[C#]
public IAgExecMultiCmdResult ExecuteMultipleCommands(
ref System.Array ConnectCommands,
AgEExecMultiCmdResultAction Action
);

[Managed C++]
public: IAgExecMultiCmdResult^ ExecuteMultipleCommands(
System::Array ^^ ConnectCommands,
AgEExecMultiCmdResultAction Action
);

[Java]
public IAgExecMultiCmdResult executeMultipleCommands(
Object[] ConnectCommands,
AgEExecMultiCmdResultAction Action
);

[Unmanaged C++]
public: HRESULT ExecuteMultipleCommands(
SAFEARRAY ** ConnectCommands,
AgEExecMultiCmdResultAction Action,
IAgExecMultiCmdResult ** ReturnValue
);

Parameters

ConnectCommands
Action

Example

Execute multiple Connect commands
[C#] Copy Code
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] Copy Code
#If Not CSToJava Then
#Else
#End If
Dim connectCommands As Array = New Object() {"New / */Satellite MySatellite", "Graphics */Satellite/MySatellite SetColor red"}

' ExecuteMultipleCommands expect a one dimensional array of Connect commands
#If Not CSToJava Then
Dim result As IAgExecMultiCmdResult = root.ExecuteMultipleCommands(connectCommands, AgEExecMultiCmdResultAction.eExceptionOnError)
#Else
#End If

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1