Share

UIApplication.CanPostCommand Method

Identifies if the given command can be posted, using PostCommand(RevitCommandId).


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

Syntax

C#

public bool CanPostCommand(
	RevitCommandId commandId
)

Parameters

commandId  RevitCommandId
The command Id.

Return Value

Boolean

Exceptions

ExceptionCondition
ArgumentNullExceptionThrown when commandId is null.

Remarks

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

See Also

Reference

Was this information helpful?