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 IAgExecCmdResult
[C#]
public IAgExecCmdResult ExecuteCommand(
   string ConnectCommand
);
[Managed C++]
public: IAgExecCmdResult^ ExecuteCommand(
   String __gc ^ ConnectCommand
);
[Java]
public IAgExecCmdResult executeCommand(
   String ConnectCommand
);
[Unmanaged C++]
public: HRESULT ExecuteCommand(
   BSTR ConnectCommand,
   IAgExecCmdResult ** ReturnValue
);

Parameters

ConnectCommand
The connect command to execute.

Example

Execute Connect command
[C#]Copy Code
IAgExecCmdResult result = root.ExecuteCommand("New / */Satellite JeffSAT"); 
 

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

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.