<Code Lib>
M

UnitUtils.Convert(Double, DisplayUnitType, DisplayUnitType)

Description:
Converts a value from one display unit to another, such as square feet to square meters.
Overloads (2):
Convert(Double,DisplayUnitType,DisplayUnitType)

[ObsoleteAttribute("This method is deprecated in Revit 2021 and may be removed in a future version of Revit. Please use the `Convert(double, ForgeTypeId, ForgeTypeId)` overload instead.")]
public static double Convert(
	double value,
	DisplayUnitType currentDisplayUnit,
	DisplayUnitType desiredDisplayUnit
)

Return Value The converted value. The converted value.

Loading…