Parameter
Set
|
Set the parameter value according to the input string.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Parameters
- valueString String
- The string that represents the parameter value.
Return Value
BooleanIndicates whether the parameter value is successfully set.
The method only applies to parameters of value types.
C#
public bool SetWithValueString(Parameter foundParameter)
{
bool result = false;
if (!foundParameter.IsReadOnly)
{
//If successful, the result is true
result = foundParameter.SetValueString("-22\'3\"");
}
return result;
}