RevitCommandId Class


Revit Command Id Class

Represents a command id in Autodesk Revit.
Inheritance Hierarchy
System Object
Autodesk.Revit.UI RevitCommandId

Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public class RevitCommandId : IDisposable

The RevitCommandId type exposes the following members.

Properties
Name Description
Public property CanHaveBinding Indicates whether the command can be assigned a binding to an external add-in.
Public property HasBinding Indicates whether a replacement of either the Execute or CanExecute events (or both) have been applied to this command.
Public property Id The command id.
Public property IsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public property Name The command name.
Top
Methods
Name Description
Public method Dispose Releases all resources used by the RevitCommandId
Public method Equals Determines whether the specified object is equal to the current object.
(Inherited from Object )
Public method GetHashCode Serves as the default hash function.
(Inherited from Object )
Public method GetType Gets the Type of the current instance.
(Inherited from Object )
Public method Static member LookupCommandId Looks up and retrieves the Revit command id with the given id string.
Public method Static member LookupPostableCommandId Looks up and retrieves the Revit command id with the given id string.
Public method ToString Returns a string that represents the current object.
(Inherited from Object )
Top
Remarks
Each Revit command is assigned a command id and non-localized name. This class allows you to look up a command by its name, and represents any Revit command in the use of an AddInCommandBinding.
See Also