RevitCommandId
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.
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)
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.