Skip to main content

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

- assetTypeIdIntegerRequired
- isToolingBooleanRequired
- hasPositions, holdsInserts, scalesOutputBooleanWhat a new tool of this type does. Default False
- lifeUnitString'cycles', 'runMinutes' or 'calendarDays'
- calibrationIntervalDaysInteger

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)