Share

UIApplication.PostCommand Method

Posts the command to the Revit message queue to be invoked when control returns from the current API context.


Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 26.2.0.0 (26.2.0.0)

Syntax

C#

public void PostCommand(
	RevitCommandId commandId
)

Parameters

commandId  RevitCommandId
The command Id.

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when commandId is null.
ArgumentExceptionIf the command cannot be posted.
InvalidOperationException If there is a command already been posted.

See Also

Reference

Was this information helpful?