WriteMultipleGeometricTemplateFile Method
Syntax
CWIMAQVision.WriteMultipleGeometricTemplateFile MultipleTemplate, Path [, Description]
Return Type
Purpose
Writes a multiple geometric template to file.
Remarks
This method can only write a multiple template that has been learned using CWIMAQVision.LearnMultipleGeometricPatterns.
Parameters
MultipleTemplate As CWIMAQMultipleGeometricTemplate
The multiple geometric template to write to file.
Path As String
The name of the file.
Description As Variant
[Optional] A string describing the multiple geometric template. The length of the string is limited to 255 characters.
Example
Private Sub Run_Click() Dim MultipleTemplate As New CWIMAQMultipleGeometricTemplate Dim Filename as String Dim Description as String Description = "My Multiple Template" ' Add some templates and learn the multiple template. ' Write the template to file assuming the Filename is set to ' some valid path. CWIMAQVision.WriteMultipleGeometricTemplateFile MultipleTemplate, _ Filename, _ Description End Sub