Pointtype property – Epson 5 User Manual
Page 124
PointType Property
PointType Property
Applies To
Vision Objects: Point
Description
Defines whether the Point object will have its position based on either the position the Point object is
placed on the Screen (0 - Screen), the midpoint of a line (1 - midpoint), or the intersection of 2 lines (2 -
intersection).
Usage
VGet Sequence.Object.PointType, var
VSet Sequence.Object.PointType, 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 expression for the new value of the property.
Values
0 - Screen
Sets the Point object's position to be based upon the position on the screen
1 - MidPoint
Sets the Point object's position to be based upon the Midpoint of the Line object
selected as LineObject1 for this Point.
2 - Intersection
Sets the Point objects position to be based upon the point were 2 lines intersect as
defined by LineObject1 and LineObject2 for this point.
Default: 0 - Screen
Remarks
Point objects are useful to define the midpoint or intersection point of a line or lines. This is their primary
purpose. The PointType property is used to define the what the position for a Point object will be based
upon. As mentioned before there are 3 choices.
0 - Screen: This is the default value for a Point object when it is first created but most of the time the
PointType property is not set to this value.
1 - MidPoint: A point position can be set to coincide with the midpoint of the line defined by the
LineObject1 property. If the LineObject1 property does not specify a line, then an error
dialog will appear if you try to set the PointType to MidPoint informing you that
LineObject1 does not exist. (i.e. you cannot define a point as the midpoint of a non-
existent line.)
2 - Intersection: A point position can be set to coincide with the intersection of 2 lines defined by the
LineObject1 and LineObject2 Properties. If the either the LineObject1 or LineObject2
property does not specify a Line then an error dialog will appear if you try to set the
PointType to Intersection informing you that one of the 2 lines required to form an
intersection does not exist.
The intersection of 2 lines does not have to appear directly between the starting and ending points for the
lines. The intersection could occur somewhere along the imaginary extension of either or both lines.
)
NOTE
110
Vision Guide 5.0 Reference (Ver.5.3) Rev.1