Interface IUnits
Gives access to units.
Namespace: TopSolid.Kernel.Automating
Assembly: TopSolid.Kernel.Automating.dll
Syntax
[ServiceContract]
[AvailableSinceVersion(7, 6, 0, 0)]
public interface IUnits
Remarks
This interface is available since v7.6.
Methods
| Name | Description |
|---|---|
| ConvertFromSI(UnitType, int, double) | Converts a value from SI unit to a specified unit. |
| ConvertToSI(UnitType, int, double) | Converts a value from a specified unit to SI unit. |
| GetUnitCount(UnitType) | Gets the number of units of a specified type. |
| GetUnitSymbol(UnitType, int) | Gets the symbol of a unit in English. |
| SearchUnit(UnitType, string) | Searches for a unit of a specified type and symbol. |