Looks up and retrieves the Revit command id with the given id string.
Namespace: Autodesk.Revit.UI
Assembly: RevitAPIUI (in RevitAPIUI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public static RevitCommandId LookupPostableCommandId( PostableCommand postableCommand )
Parameters
- postableCommand PostableCommand
- The postable command.
Return Value
RevitCommandIdThe Revit command id. Returning null if a command with the given name was not found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Thrown when name is null. |