Revit 2026 API
UIApplicationPost |
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.0.4.0 (26.0.4.0)
Syntax
public void PostCommand( RevitCommandId commandId )
Public Sub PostCommand ( commandId As RevitCommandId )
public: void PostCommand( RevitCommandId^ commandId )
member PostCommand : commandId : RevitCommandId -> unit
Parameters
- commandId RevitCommandId
- The command Id.
| Exception | Condition |
|---|---|
| ArgumentNullException | Thrown when commandId is . |
| ArgumentException | If the command cannot be posted. |
| InvalidOperationException | If there is a command already been posted. |
See Also