2025.3 Method
Changes 0
M

GlobalParametersManager.FindByName

Description:
Finds whether a global parameter with the given name exists in the input document.
Remarks:
No exception is thrown when no parameter with such a name exists in the document; instead, the method returns an ElementId.InvalidElementId.
public static ElementId FindByName(
	Document document,
	string name
)
  • document
    The document expected to contain the global parameter.
  • String
    name
    Name of the global parameter
Return Value ElementId ElementId of the parameter element, or InvalidElementId if it was not found.