Set the parameter value according to the input string.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public bool SetValueString(
string valueString
)
Parameters
- valueString String
- The string that represents the parameter value.
Return Value
BooleanIndicates whether the parameter value is successfully set.
Remarks
The method only applies to parameters of value types.
Example
C#
public bool SetWithValueString(Parameter foundParameter)
{
bool result = false;
if (!foundParameter.IsReadOnly)
{
result = foundParameter.SetValueString("-22\'3\"");
}
return result;
}
VB
Public Function SetWithValueString(foundParameter As Parameter) As Boolean
Dim result As Boolean = False
If Not foundParameter.IsReadOnly Then
result = foundParameter.SetValueString("-22'3""")
End If
Return result
End Function
See Also
Reference