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

Parameter.SetValueString

Method
Description:
Set the parameter value according to the input string.
Remarks:
The method only applies to parameters of value types.
Syntax
public bool SetValueString(
	string valueString
)
Examples
public bool SetWithValueString(Parameter foundParameter)
{
    bool result = false;
    if (!foundParameter.IsReadOnly)
    {
        //If successful, the result is true
        result = foundParameter.SetValueString("-22\'3\"");
    }
    return result;
}
Parameters
Parameter Type Description
valueString String The string that represents the parameter value.
Return Value
Type Description
Boolean Indicates whether the parameter value is successfully set.