InvokeAndWait(IProtectedContext, IProgressMonitor)

Use this command to run a script in context of a given application API. The property ContextName determines the application the script is executed in. See Ansys.ACT.WorkBench.QCServices.ExecuteJournalCommand for example usage. The caller is blocked until execution finishes. Use this form when progress tracking is needed. Use this form to pass a command or query context.

Declaration Syntax

public static void InvokeAndWait(IProtectedContext context, IProgressMonitor progressMonitor)

Parameters

context(IProtectedContext)

The context in which to invoke the command

progressMonitor(IProgressMonitor)

A progress monitor through which the command may report its progress