Skip to main content

system.kanoa.tooling.getCompatibilityRules(paramsDict)

The fit rules (mes.toolingCompatibility): where a tool may be mounted. A rule is for one tool, or for every tool of a tooling type, and names one parent: a machine, a tool that holds inserts, or an asset type. A tool with no enabled rules (its own or its type's) fits anywhere; once it has one, it only mounts on a parent one of them names.


Parameters​

paramsDict Dictionary

- toolingAssetIdIntegerThe rules that apply to this tool, its own and its type's
- assetTypeIdIntegerThe rules for this tooling type
- enabledBoolean

Returns​

rules pyDataset: toolingCompatibilityId, ruleFor ('tool' or 'type'), childToolingAssetId, childToolingName, childAssetTypeId, childTypeName, childName, parentKind ('tool', 'asset' or 'type'), parentToolingAssetId, parentToolingName, parentAssetId, parentAssetName, parentAssetPath, parentAssetTypeId, parentTypeName, parentName, enabled, createdBy, createdDate, changedBy, changedDate. The tool's own rules come first.


Example​

paramsDict = {'toolingAssetId': 1}
rules = system.kanoa.tooling.getCompatibilityRules(paramsDict)