Click or drag to resize

MeasureConvertMass Method

Converts a mass 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 ConvertMass(
	swUnitsMassPropMass_e from,
	swUnitsMassPropMass_e to,
	double value
)

Parameters

from
Type: swUnitsMassPropMass_e
Source unit.
to
Type: swUnitsMassPropMass_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