Tests whether this parameter can be associated with the given global parameter.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.3.0.0 (25.3.0.0)
Syntax
C#
public bool CanBeAssociatedWithGlobalParameter( ElementId gpId )
Parameters
- gpId ElementId
- Id of a global parameter contained in this parameter's document
Return Value
BooleanTrue if this parameter can be associated with the given global parameter; False otherwise.
Exceptions
Exception | Condition |
---|---|
ArgumentException | The input gpId is not of a valid global parameter of the given document. -or- This parameter does not exist in the document anymore. |
ArgumentNullException | A non-optional argument was NULL |