system.kanoa.tooling.saveToolType(typeInfo, userId)
Makes an asset type a tooling type, or not, and sets what a new tool of that type starts with. Tooling types are the ones the tool editor offers and the asset tree editor leaves out. Refused when making a type tooling that assets which aren't tools already have, that is a Mobile type, or that is a plant hierarchy level (enterprise, site, area, line, cell). Tools keep their type when it stops being a tooling type.
Parameters
typeInfo Dictionary
| - assetTypeId | Integer | Required |
| - isTooling | Boolean | Required |
| - hasPositions, holdsInserts, scalesOutput | Boolean | What a new tool of this type does. Default False |
| - lifeUnit | String | 'cycles', 'runMinutes' or 'calendarDays' |
| - calibrationIntervalDays | Integer |
userId Integer: The user making the change
Returns
(1, message)
Example
typeInfo = {'assetTypeId': 1, 'isTooling': True, 'lifeUnit': 'cycles', 'calibrationIntervalDays': 1}
userId = 5
result1, result2 = system.kanoa.tooling.saveToolType(typeInfo, userId)