ParameterSetValueString Method |
Set the parameter value according to the input string.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 27.0.4.0 (27.0.4.0)
Syntaxpublic bool SetValueString(
string valueString
)
Public Function SetValueString (
valueString As String
) As Boolean
public:
bool SetValueString(
String^ valueString
)
member SetValueString :
valueString : string -> bool Parameters
- valueString String
- The string that represents the parameter value.
Return Value
BooleanIndicates whether the parameter value is successfully set.
RemarksThe method only applies to parameters of value types.
Examplepublic bool SetWithValueString(Parameter foundParameter)
{
bool result = false;
if (!foundParameter.IsReadOnly)
{
result = foundParameter.SetValueString("-22\'3\"");
}
return result;
}
See Also