ToolTrackingCollection GenerateUniqueToolName Method Cognex VisionPro 9.22 SR1

Generates a unique name for the input tool type name.

Namespace: Cognex.Vision
Assembly: Cognex.Vision.Core.Net (in Cognex.Vision.Core.Net.dll) Version: 9.22.2.0
Syntax

public string GenerateUniqueToolName(
	string toolTypeName
)

Parameters

toolTypeName
Type: System String
the tool type name to generate a unique name for.

Return Value

Type: String

A string with the generated unique name.

Remarks

For example, if the toolTypeName is "Cognex.Vision.ImageProcessing.HistogramTool", this will return the name "HistogramTool1". If there is already another tool with this name, then the function could return "HistogramTool2".

See Also