Sets the parameter to a new string of text.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Syntax
C# |
---|
public bool Set(
string value
) |
Visual Basic |
---|
Public Function Set ( _
value As String _
) As Boolean |
Visual C++ |
---|
public:
bool Set(
String^ value
) |
Parameters
- value
- Type: System..::..String
The new text value to which the parameter is to be set.
Return Value
The Set method will return True if the parameter was successfully set to the new value, otherwise false.
Remarks
Examples
CopyC#
void AddInstanceComment(Wall wall)
{
Parameter commentPara = wall.get_Parameter(BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS);
if (null != commentPara)
{
commentPara.Set("Hello Everyone.");
}
}
CopyVB.NET
Private Sub AddInstanceComment(wall As Wall)
Dim commentPara As Parameter = wall.Parameter(BuiltInParameter.ALL_MODEL_INSTANCE_COMMENTS)
If commentPara IsNot Nothing Then
commentPara.[Set]("Hello Everyone.")
End If
End Sub
Exceptions
See Also