Revit 2025.3 API
UIApplicationCan |
Identifies if the given command can be posted, using PostCommand(RevitCommandId).
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
public bool CanPostCommand( RevitCommandId commandId )
Public Function CanPostCommand ( commandId As RevitCommandId ) As Boolean
public: bool CanPostCommand( RevitCommandId^ commandId )
member CanPostCommand : commandId : RevitCommandId -> bool
Parameters
- commandId RevitCommandId
- The command Id.
Return Value
Boolean
Exception | Condition |
---|---|
ArgumentNullException | Thrown when commandId is . |

Only members of Autodesk.Revit.UI.PostableCommand or external commands can be posted.
See Also