Skip to main content

system.kanoa.tooling.checkRequiredTooling(paramsDict)

The tools an item needs on a machine that aren't mounted on it: each required tool not on the machine (or in a pocket of a tool on it), and each required tooling type no mounted tool is. A required tool with output positions set to the item, or to no item, is also met by a mounted tool with an unblocked position set to the item, such as a family mold. Empty when everything is mounted, nothing is required, or the machine doesn't use tooling. Run Control warns with it before a run starts.


Parameters​

paramsDict Dictionary

- assetIdIntegerRequired. The machine
- itemIdIntegerRequired. The item to run
- atDateWhen; None for now

Returns​

missing Dataset: itemAssetToolingId, toolingAssetId, toolingName, toolingAssetTypeId, toolingTypeName, message


Example​

paramsDict = {'assetId': 1, 'itemId': 1}
missing = system.kanoa.tooling.checkRequiredTooling(paramsDict)
for row in system.kanoa.utilities.convertDatasetToJSON(missing):
print row['message']