ReadMultipleGeometricTemplateFile Method

NI Vision for Visual Basic

ReadMultipleGeometricTemplateFile Method

Syntax

CWIMAQVision.ReadMultipleGeometricTemplateFile MultipleTemplate, Path [, Description]

Return Type

Long

Purpose

Reads a multiple geometric template from file.

Parameters

MultipleTemplate As CWIMAQMultipleGeometricTemplate

The multiple geometric template to read the data into.

Path As String

The name of the file.

Description As Variant

[Optional] On return, the description of the multiple geometric template file the method read.

Example

Private Sub Run_Click()
    Dim MultipleTemplate As New CWIMAQMultipleGeometricTemplate
    Dim Filename as String
    Dim Description as String

    ' Read the template from file assuming the Filename is set to
    ' some valid path.
    CWIMAQVision.ReadMultipleGeometricTemplateFile MultipleTemplate, _
                                                   Filename, _
                                                   Description
End Sub