Finds whether a global parameter with the given name exists in the input document.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static ElementId FindByName( Document document, string name )
Parameters
- document Document
- The document expected to contain the global parameter.
- name String
- Name of the global parameter
Return Value
ElementIdElementId of the parameter element, or InvalidElementId if it was not found.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |