ModelWinLeft Property
Applies To
Vision Objects: Correlation, Geometric
Description
Defines the left most position of the model window for Correlation and Geometric objects.
Usage
VGet Sequence.Object.ModelWinLeft, var
Sequence Name of a sequence or string variable containing a sequence name.
Object Name of an object or string variable containing an object name. The object must exist in the
specified sequence.
var Integer variable that will contain the value of the property.
Values
Integer number in pixels from 1 - video width
Remarks
The ModelWinLeft property is available for the Correlation and Geometric objects only since those are the
only vision objects which use a Model to define a pattern to search for. The model window always fits
inside the Search Window.
The Correlation and Geometric objects have rectangular model windows which define the position and size
of the model to be taught. The ModelWinLeft property is set automatically when the user drags the entire
model window to a new location or when the leftmost side of the model window is dragged to resize the
model window.
The ModelWinLeft property is available from both the Vision Guide window Object Tab and from the
SPEL+ Language. The easiest way to set the ModelWinLeft position is to simply click down on one of the
sides of the model window and then drag the model window to a new position. You can also click on the
leftmost vertical side of the model window at the center of the vertical line where the leftmost window
handle is (the small square on the left vertical side of the Model window). You will see the mouse pointer
change to a two direction horizontal arrow. Now drag the leftmost vertical side of the model window and
you will see the size of the model change. Release the mouse button when you want to set the position.
It is also possible to set a specific value for the ModelWinLeft property. Click on the ModelWinLeft
property Value Field in the Object tab and simply enter in the value which you would like to set the
ModelWinLeft property to. Once the user moves the cursor off the value field, the leftmost position of the
model window will be adjusted for the associated vision object.
See Also
Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgAutoCenter Property,
ModelOrgX Property, ModelOrgY Property, ModelWin Property, ModelWinHeight Property,
ModelWinTop Property, ModelWinWidth Property, Object Tab
84 Vision Guide 5.0 Reference (Ver.5.3) Rev.1