Skip to main content

system.kanoa.tooling.exportTools(paramsDict)

Exports tools' setup as a portable file for importTools: each tool's asset fields and tooling info (limits, setup and teardown minutes), its positions and its cycle rates, plus the tooling types it uses. References are written by natural key (location and machine asset paths, asset type paths, item paths). What a tool has been through is left out: life counts, the calibration due date, mounts and history, and which positions are blocked. Save it with system.perspective.download(name, system.util.jsonEncode(data))


Parameters​

paramsDict Dictionary

- toolingAssetIdListList of IntegerNot required. Tools to export; every tool, disabled ones included, if not passed or empty

Returns​

Tuple exportData (Dictionary: {'exportType': 'toolingData', 'version', 'exportedDate', 'data': {tools, toolTypes}}, or None on error; message (String): None if success)


Example​

paramsDict = {'toolingAssetIdList': [101, 102]}
data, msg = system.kanoa.tooling.exportTools(paramsDict)
if msg is None:
system.perspective.download('Tools.json', system.util.jsonEncode(data))