Parameter.CanBeAssociatedWithGlobalParameter
Description:
Tests whether this parameter can be associated with the given global parameter.
Tests whether this parameter can be associated with the given global parameter.
Remarks:
Only properties defined as parametrizable can be associated with global parameters. That excludes any read-only and formula-driven parameters, as well as those that have other explicit or implicit restrictions imposed by Revit.
Only properties defined as parametrizable can be associated with global parameters. That excludes any read-only and formula-driven parameters, as well as those that have other explicit or implicit restrictions imposed by Revit.
public bool CanBeAssociatedWithGlobalParameter(
ElementId gpId
)
-
gpIdId of a global parameter contained in this parameter's document
Return Value
bool
True if this parameter can be associated with the given global parameter; False otherwise.
-
The input gpId is not of a valid global parameter of the given document. -or- This parameter does not exist in the document anymore.
-
A non-optional argument was NULL