RVTDocs.com
Namespace: Autodesk.Revit.DB Class: Parameter

Set

Method
Description:
Sets the parameter to a new element id.
Remarks:
You should only use this method if the StorageType property reports the type of the parameter as an ElementId.
Syntax
public bool Set(
	ElementId value
)
Parameters
Parameter Type Description
value Autodesk.Revit.DB.ElementId new element id to which the parameter is to be set.
Return Value
Type Description
Autodesk.Revit.Exceptions.InvalidOperationException The Set method will return True if the parameter was successfully set to the new value, otherwise false.
Exceptions
Exception Condition
Autodesk.Revit.Exceptions.InvalidOperationException The parameter is read-only.