    

 ## On this page

  

 

 # `UnitsHelper`

 Last update: 09.03.2026 

<a id="ansys.mechanical.stubs.v251.Ansys.ACT.Mechanical.UnitsHelper"></a>

#### *class* Ansys.ACT.Mechanical.UnitsHelper

Bases: [`object`](https://docs.python.org/3/library/functions.html#object)

Defines set of methods that can be used to find mechanical unit information

<a id="overview"></a>

## Overview

### Constructors

NameDescription[`ConvertMechanicalUnitToCoreUnit`](#UnitsHelper.ConvertMechanicalUnitToCoreUnit)Takes input mechanical unit string and category string[`GetValidQuantityNamesAndUnits`](#UnitsHelper.GetValidQuantityNamesAndUnits)Retrieve a dictionary of quantity names to unit strings.<a id="method-detail"></a>

## Method detail

<a id="UnitsHelper.ConvertMechanicalUnitToCoreUnit"></a>

### *classmethod* UnitsHelper.ConvertMechanicalUnitToCoreUnit(mechanicalUnit: [str](https://docs.python.org/3/library/stdtypes.html#str), unitCategory: [str](https://docs.python.org/3/library/stdtypes.html#str))

```text
Takes input mechanical unit string and category string
And returns framework unit string which can be used for conversion

```

<a id="UnitsHelper.GetValidQuantityNamesAndUnits"></a>

### *classmethod* UnitsHelper.GetValidQuantityNamesAndUnits()

```text
Retrieve a dictionary of quantity names to unit strings.
These quantity names represent valid quantity names that can be used when defining quantities in
Mechanical ACT extensions.

```