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: 24.0.0.0 (24.0.0.0)
Since: 2014
Syntax
| C# |
|---|
|
| Visual Basic |
|---|
|
| Visual C++ |
|---|
|
Parameters
- commandId
- Type: Autodesk.Revit.UIRevitCommandId
The command Id.
Exceptions
| Exception | Condition |
|---|---|
| Autodesk.Revit.ExceptionsArgumentNullException | Thrown when commandId is a null reference (Nothing in Visual Basic). |
| Autodesk.Revit.ExceptionsArgumentException | If the command cannot be posted. |
| Autodesk.Revit.ExceptionsInvalidOperationException | If there is a command already been posted. |