AGI UI PluginsSend comments on this topic.
Exec Method (IAgUiPluginCommandTarget)
See Also
CommandName
A named command
TrackCancel
Object that allows controlling the progress indicator of the hosting application.
Parameters
A collection of custom key/value pairs.
Windows





Windows & Linux

Description

Executes the specified named command.

Syntax

[Visual Basic .NET]
Public Sub Exec( _
    ByVal CommandName As String, _
    ByVal TrackCancel As IAgProgressTrackCancel, _
    ByVal Parameters As IAgUiPluginCommandParameters _
)
[Managed C++]
public: void Exec(
    String __gc ^ CommandName,
    IAgProgressTrackCancel ^ TrackCancel,
    IAgUiPluginCommandParameters ^ Parameters
);
[Unmanaged C++]
public: HRESULT Exec(
    BSTR CommandName,
    IAgProgressTrackCancel * TrackCancel,
    IAgUiPluginCommandParameters * Parameters
);

Parameters

CommandName
A named command
TrackCancel
Object that allows controlling the progress indicator of the hosting application.
Parameters
A collection of custom key/value pairs.

See Also

Example

Execute a named command
void IAgUiPluginCommandTarget.Exec(string CommandName, IAgProgressTrackCancel TrackCancel, IAgUiPluginCommandParameters Parameters)
{
//Controls what a command does
if (string.Compare(CommandName, "MyFirstCommand", true) == 0)
{
// Perform an action here.
}
}
© 2026 Analytical Graphics, Inc. All Rights Reserved.