CogOCVMaxPattern SetCustomizationFromFile Method Cognex VisionPro 9.22 SR1
Sets the customization string for the specified customization type from the specified file.

Namespace: Cognex.VisionPro.OCVMax
Assembly: Cognex.VisionPro.OCVMax (in Cognex.VisionPro.OCVMax.dll) Version: 87.1.0.0
Syntax

public string SetCustomizationFromFile(
	string filename,
	CogOCVMaxCustomizationTypeConstants type
)

Parameters

filename
Type: System String
A System::String holding the name of the file containing the desired customization information.
type
Type: Cognex.VisionPro.OCVMax CogOCVMaxCustomizationTypeConstants
A CogOCVMaxCustomizationTypeConstants that specifies the desired type of customization. Options include KeySearch, ImageSearch, and OCVMaxTool.

Return Value

Type: String
The new customization string for the specified type.
Events

Exceptions

ExceptionCondition
ObjectDisposedExceptionIf this CogOCVMaxPattern object has already been disposed.
ArgumentExceptionIf the file cannot be opened or the customization string format is not valid.
InvalidOperationExceptionIf an internal error occurs.
See Also