SetParameterValue
bool SetParameterValue<T>(this Element element, string paramName, T value)Sets a named parameter to the specified value. Supports string/int/double/bool/ElementId. Returns false if missing/read-only/type mismatch.
Parameters
- elementElement
The element to modify.
- paramNamestring
The parameter display name.
- valueT
The value to set.
Returns: True if set; otherwise false.
Example
element.SetParameterValue("Comments", "Updated");element.SetParameterValue("YesNoParam", true);