FamilyType.AsValueString Method

FamilyTypeAsValueString Method

Provides access to value as a string with unit in the given family parameter.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntax
public string AsValueString(
	FamilyParameter familyParameter
)
Public Function AsValueString ( 
	familyParameter As FamilyParameter
) As String
public:
String^ AsValueString(
	FamilyParameter^ familyParameter
)
member AsValueString : 
        familyParameter : FamilyParameter -> string 

Parameters

familyParameter  FamilyParameter
 

Return Value

String
The string that represents the parameter value with unit.
Exceptions
ExceptionCondition
ArgumentNullException Thrown when the input argument-"familyParameter"-is .
ArgumentException Thrown if the input argument-"familyParameter"-is invalid.
Remarks
The method only applies to parameters of value types. If the parameter has no value or does not contain a numeric value, the method returns .
See Also