RVTDocs.com
Namespace: Autodesk.Revit.UI Class: RevitCommandId

RevitCommandId.LookupCommandId

Method
Description:
Looks up and retrieves the Revit command id with the given id string.
Syntax
public static RevitCommandId LookupCommandId(
	string name
)
Parameters
Parameter Type Description
name String he Revit command name. Refer to the entries in the Revit journal to find the string to use for a particular command.
Return Value
Type Description
RevitCommandId The Revit command id. Returning "null" if a command with the given name was not found.
Exceptions
Exception Condition
ArgumentNullException A non-optional argument was null