RevitCommandId
Description:
Represents a command id in Autodesk Revit.
Represents a command id in Autodesk Revit.
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.
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.
public class RevitCommandId : IDisposable
| Name | Return Type | Description |
|---|---|---|
| Dispose() | None | Releases all resources used by the |
| LookupCommandId(String) | RevitCommandId | Looks up and retrieves the Revit command id with the given id string. |
| LookupPostableCommandId(PostableCommand) | nullNothingnullptr | Looks up and retrieves the Revit command id with the given id string. |
| Name | Return Type | Description |
|---|---|---|
| CanHaveBinding | bool | Indicates whether the command can be assigned a binding to an external add-in. |
| HasBinding | bool | Indicates whether a replacement of either the Execute or CanExecute events (or both) have been applied to this command. |
| Id | uint | The command id. |
| IsValidObject | bool | Specifies whether the .NET object represents a valid Revit entity. |
| Name | string | The command name. |