ModelWinWidth Property
Applies To
Vision Objects: Correlation, Geometric, ImageOp, OCR
Description
Defines the width of a model window.
Usage
VGet Sequence.Object.ModelWinWidth, var
VSet Sequence.Object.ModelWinWidth, value
- 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.
- value
- Integer value or expression for the new value of the property.
Values
Integer number in pixels from 10 to search window width
For OCR only: Integer number in pixels from 10 to 256
Remarks
The model window can be set in the Search Window.
The ModelWinWidth property is set automatically when the user drags the entire model window to a new location or when one of the horizontal sides of the model window is dragged to resize the model window.
Keep in mind that larger model windows cause the taught Model to be larger, which in turn may cause the execution time of the object to increase.
The ModelWinWidth property can be set by directly inputting the value from the property list of Vision Guide and by using the SPEL+ Language. Also, it can be set by clicking on the upper or lower horizontal sides of the model window and then dragging them vertically.
You can also click the left or right vertical side of the model window at the center of the vertical line where the window handle is (the small square on the upper horizontal side of the Model window). You will see the mouse pointer change to a two direction horizontal arrow. Now drag the side of the model window and you will see the of the model change in width. Release the mouse button when you want to set the position.
To set a value from the property list, click the ModelWinWidth property’s Value Field and simply enter in the value. Once you move the cursor off the value field, the ModelWinLeft 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, ModelWinLeft Property, ModelWinTop Property, OCR Obejct