|
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)
Syntaxpublic static double ConvertLength(
swLengthUnit_e from,
swLengthUnit_e to,
double value
)
Public Shared Function ConvertLength (
from As swLengthUnit_e,
to As swLengthUnit_e,
value As Double
) As Double
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:
DoubleConverted value in the target unit.
ExceptionsException | Condition |
---|
[!:CADSharpTools.Commons.CADSharpToolsPDMException] | Thrown when there is an incomplete implementation. |
See Also