Share

RevitCommandId 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: 26.1.0.0 (26.1.0.34)

Syntax

C#

public class RevitCommandId : IDisposable

The RevitCommandId type exposes the following members.

Properties

 NameDescription
Public propertyCanHaveBinding Indicates whether the command can be assigned a binding to an external add-in.
Public propertyHasBinding Indicates whether a replacement of either the Execute or CanExecute events (or both) have been applied to this command.
Public propertyId The command id.
Public propertyIsValidObject Specifies whether the .NET object represents a valid Revit entity.
Public propertyName The command name.

Methods

 NameDescription
Public methodDisposeReleases all resources used by the RevitCommandId
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodStatic memberLookupCommandId Looks up and retrieves the Revit command id with the given id string.
Public methodStatic memberLookupPostableCommandId Looks up and retrieves the Revit command id with the given id string.
Public methodToStringReturns 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.

See Also

Reference

Was this information helpful?