system.kanoa.quality.config.addTolerance(attrInfo, userId)
Adds an attribute tolerance. All attrInfo keys are required.
Parameters
attrInfo Dictionary
| - assetId | Integer | Can be None for all assets |
| - attributeId | Integer | |
| - enabled | Boolean | |
| - itemClassId | Integer | Can be None for all item classes |
| - itemId | Integer | Can be None for all items |
| - itemSetId | Integer | Can be None for all item sets |
| - lcl | Float | Lower control limit |
| - ldl | Float | Lower division limit if applciable |
| - lel | Float | Lower entry limit |
| - lsl | Float | Lower spec limit |
| - tgt | Float | Target |
| - ucl | Float | Upper control limit |
| - udl | Float | Upper division limit if applciable |
| - uel | Float | Upper entry limit |
| - usl | Float | Upper spec limit |
userId Integer
Returns
attributeToleranceId Integer
Example
attrInfo = {
'attributeId': 2,
'assetId': None,
'itemId': None,
'itemClassId': None,
'itemSetId': None,
'uel': 10.0,
'udl': None,
'usl': 9.0,
'ucl': 8.0,
'tgt': 5,
'lcl': 3,
'lsl': 2,
'ldl': None,
'lel': 0,
'enabled': True
}
userId = 5
attributeToleranceId = system.kanoa.quality.config.addTolerance(attrInfo, userId)