Share

FamilyType.AsValueString 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: 26.2.0.0 (26.2.0.0)

Syntax

C#

public string AsValueString(
	FamilyParameter familyParameter
)

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 null.
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 null.

See Also

Reference

Was this information helpful?