AGI STK Objects 11Send comments on this topic.
ExecuteCommand Method (IAgStkObjectRoot)
See Also  Example
ConnectCommand
The connect command to execute.
Windows






Windows & Linux

Description

Executes a custom CONNECT action. The method throws an exception if the command has failed.

Syntax

[Visual Basic .NET]
Public Function ExecuteCommand( _
   ByVal ConnectCommand As String _
) As AgExecCmdResult
[C#]
public AgExecCmdResult ExecuteCommand(
   string ConnectCommand
);
[Managed C++]
public: AgExecCmdResult ExecuteCommand(
   String __gc ^ ConnectCommand
);
[Java]
public AgExecCmdResult executeCommand(
   String ConnectCommand
);
[Unmanaged C++]
public: HRESULT ExecuteCommand(
   BSTR ConnectCommand,
   AgExecCmdResult * ReturnValue
);

Parameters

ConnectCommand
The connect command to execute.

Example

Execute Connect command
[C#]Copy Code
<a href="STKUtil~AgExecCmdResult.html">AgExecCmdResult</a> result = root.ExecuteCommand("New / */Satellite JeffSAT"); 
 

Execute Connect command
[Visual Basic .NET]Copy Code
Dim result As AgExecCmdResult = root.ExecuteCommand("New / */Satellite JeffSAT")

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.