Loads a ccPMAlignPattern class from the specified CVL archive file into this CogPMAlignPattern class. The archive should contain only a single ccPMAlignPattern class. Non-CVL parameters are set to their default VisionPro values.
Namespace: Cognex.VisionPro.PMAlignAssembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 75.1.0.0
Syntax
Parameters
- filename
- Type: System String
Name of the CVL archive.
Events
| Event Type | Reason |
|---|---|
| CogPMAlignPattern Changed | Fires after importing the archive. The following state flags may be affected: |
| CogPMAlignPattern Changed | Fires if importing the CVL archive failed and the original pattern had to be retrained. The following state flag may be affected: |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | filename is NULL. |
| CogFileOpenException | filename could not be opened. |
| CogPMAlignImportFromCVLErrorException | filename could not be read. |
Remarks
Loads a ccPMAlignPattern class from the specified CVL archive file into this CogPMAlignPattern class. Non-CVL parameters are set to their default VisionPro values.
See Also