Changes in 2021 vs 2020 19 added 12 changed
Flip API Versions →Added in 2021 (new since 2020)
Convert(Double, ForgeTypeId, ForgeTypeId)
ConvertFromInternalUnits(Double, ForgeTypeId)
ConvertToInternalUnits(Double, ForgeTypeId)
GetAllSpecs
GetAllUnits
GetDisplayUnitType(ForgeTypeId)
GetSpecTypeId(UnitType)
GetSymbolTypeId(UnitSymbolType)
GetTypeCatalogStringForSpec(ForgeTypeId)
GetTypeCatalogStringForUnit(ForgeTypeId)
GetUnitGroup(ForgeTypeId)
GetUnitSymbolType(ForgeTypeId)
GetUnitType(ForgeTypeId)
GetUnitTypeId(DisplayUnitType)
GetValidUnits(ForgeTypeId)
IsSpec(ForgeTypeId)
IsSymbol(ForgeTypeId)
IsUnit(ForgeTypeId)
IsValidUnit(ForgeTypeId, ForgeTypeId)
Changed members
UnitUtils.Convert(Double, DisplayUnitType, DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| value | Double | The value to convert. |
| currentDisplayUnit | DisplayUnitType | The current display unit. |
| desiredDisplayUnit | DisplayUnitType | The desired display unit. |
UnitUtils.ConvertFromInternalUnits(Double, DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| value | Double | The value to convert. |
| displayUnit | DisplayUnitType | The desired display unit. |
UnitUtils.ConvertToInternalUnits(Double, DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| value | Double | The value to convert. |
| displayUnit | DisplayUnitType | The value's display unit. |
UnitUtils.GetTypeCatalogString(UnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| unitType | UnitType | The unit type. |
| → returns | String | The type catalog string, or an empty string if the unit type cannot be used in type catalogs. |
UnitUtils.GetTypeCatalogString(DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| displayUnit | DisplayUnitType | The display unit. |
| → returns | String | The type catalog string, or an empty string if the display unit cannot be used in type catalogs. |
UnitUtils.GetUnitGroup(UnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| unitType | UnitType | The unit type. |
UnitUtils.GetValidDisplayUnits(UnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| unitType | UnitType | The unit type. |
| → returns | IList | The valid display units. |
UnitUtils.GetValidDisplayUnits()
No longer obsolete in 2020 (was obsolete in 2021)
| → returns | IList | The valid display units. |
UnitUtils.GetValidUnitTypes()
No longer obsolete in 2020 (was obsolete in 2021)
| → returns | IList | The valid unit types. |
UnitUtils.IsValidDisplayUnit(UnitType, DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| unitType | UnitType | The unit type. |
| displayUnit | DisplayUnitType | The display unit to check. |
| → returns | Boolean | True if the display unit is valid, false otherwise. |
UnitUtils.IsValidDisplayUnit(DisplayUnitType, DisplayUnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| displayUnit | DisplayUnitType | The display unit to check. |
| displayUnitEnum | DisplayUnitType | The display unit to check. |
| → returns | Boolean | True if the display unit is valid, false otherwise. |
UnitUtils.IsValidUnitType(UnitType, UnitType)
No longer obsolete in 2020 (was obsolete in 2021)
| unitType | UnitType | The unit type to check. |
| unitTypeEnum | UnitType | The unit type to check. |
| → returns | Boolean | True if the unit type is valid, false otherwise. |