STK ObjectsSend comments on this topic.
ExecuteCommand Method (IAgStkObjectRoot)
See Also
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
);
[Unmanaged C++]
public: HRESULT ExecuteCommand(
    BSTR ConnectCommand,
    IAgExecCmdResult ** ppIAgExecCmdResult
);
[Java]
public IAgExecCmdResult executeCommand(
    String ConnectCommand
);
[Python - STK API ]
def ExecuteCommand(self, ConnectCommand:str) -> "IAgExecCmdResult":

Parameters

ConnectCommand
The connect command to execute.

See Also

Example

Execute Connect command
[C#]
IAgExecCmdResult result = root.ExecuteCommand("New / */Satellite JeffSAT");
Execute Connect command
[Visual Basic .NET]
Dim result As IAgExecCmdResult = root.ExecuteCommand("New / */Satellite JeffSAT")
© 2024 Analytical Graphics, Inc. All Rights Reserved.