CogPMAlignPattern PCPLoadFromFile Method Cognex VisionPro 9.22 SR1
Customizes this PMAlign pattern using the customization string (PCP) in the file specified by Filename.

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

public void PCPLoadFromFile(
	string filename
)

Parameters

filename
Type: System String

Events

Exceptions

ExceptionCondition
ArgumentException

filename is an empty string.

CogFileOpenException

filename could not be opened.

CogPMAlignInvalidPCPException

filename contains an invalid PCP string. If this error occurs, any existing PCP string is lost and the contents of the PCPString are undefined.

Remarks

Customizes this PMAlign pattern using the customization string (PCP) in the file specified by Filename.

Note: Calling this function causes this CogPMAlignPattern to become untrained.

See Also