Solid Edge Framework Type Library
FormatUnit Method
Member of the UnitTypeConstants constant set that specifies the type of measurement to be taken.
Specifies the value in database units that is to be converted into a string value.
Member of the AnglePrecisionConstants, AreaPrecisionConstants, DensityPrecisionConstants, DistancePrecisionConstants, MassPrecisionConstants, or VolumePrecisionConstants constant set (depending on the unit type specified in Index) that specifies the precision for the returned value.
Description
Accepts a value in database units as input and returns a string in the user-specified unit and precision.
Syntax
Visual Basic
Public Function FormatUnit( _
   ByVal Index As Integer, _
   ByVal Dbus As Double, _
   Optional ByVal PrecisionConstant As Variant _
) As Variant
Parameters
Index
Member of the UnitTypeConstants constant set that specifies the type of measurement to be taken.
Dbus
Specifies the value in database units that is to be converted into a string value.
PrecisionConstant
Member of the AnglePrecisionConstants, AreaPrecisionConstants, DensityPrecisionConstants, DistancePrecisionConstants, MassPrecisionConstants, or VolumePrecisionConstants constant set (depending on the unit type specified in Index) that specifies the precision for the returned value.
See Also

UnitsOfMeasure Collection  | UnitsOfMeasure Members

Send comments on this topic.