Click or drag to resize

MeasureConvertLength Method

Converts a length from one unit of measurement to another.

Namespace:  CADSharpTools.SOLIDWORKS
Assembly:  CADSharpTools.PDM (in CADSharpTools.PDM.dll) Version: 1.4.16.0 (1.4.16)
Syntax
public static double ConvertLength(
	swLengthUnit_e from,
	swLengthUnit_e to,
	double value
)

Parameters

from
Type: swLengthUnit_e
Source unit.
to
Type: swLengthUnit_e
Target unit.
value
Type: SystemDouble
value of the measurement in the source unit.

Return Value

Type: Double
Converted value in the target unit.
Exceptions
ExceptionCondition
[!:CADSharpTools.Commons.CADSharpToolsPDMException]Thrown when there is an incomplete implementation.
See Also