RVTDocs.com
Namespace: Autodesk.Revit.UI Class: UIApplication

UIApplication.PostCommand

Method
Description:
Posts the command to the Revit message queue to be invoked when control returns from the current API context.
Syntax
public void PostCommand(
	RevitCommandId commandId
)
Parameters
Parameter Type Description
commandId RevitCommandId The command Id.
Return Value
Exceptions
Exception Condition
ArgumentNullException Thrown when commandId is.
ArgumentException If the command cannot be posted.
InvalidOperationException If there is a command already been posted.