system.kanoa.quality.config.addUnit
Description
Adds a new engineering unit in KanoaQDS.Syntax
addUnit(unitInfo, userId)- unitInfo (dict)
- - engUnitName (string)
- - enabled (bool)
- userId (int)
- engUnitId (int)
- msg (string): None if success
Code Examples
# Usage example
>unitInfo = {'engUnitName': 'Kilograms', 'enabled': True}
>userId = 5
>engUnitId = system.kanoa.quality.config.addUnit(unitInfo, userId)