pytha.get_length_unit - pytha-3d-cad/pytha-lua-api GitHub Wiki

Retreives the length unit and the conversion factor to meters set in the PYTHA user interface.

pytha.get_length_unit() 

Return value

Type Description
string, number The name of the length unit and the conversion factor to meters.

Remarks

To persistently store and load length values with load_values and save_values it is recommended to convert these values to a standard unit when saving and to the active length unit when loading.

See also:

pytha, pyio, load_values, save_values