OriginAngleEnabled Property

Applies To
Vision Objects: Frame

Description
Unlike the two-point frame which rotates the frame based on the vector rotation between the OriginPoint property and the YaxisPoint property, the OriginAngleEnabled property enables a single point frame to rotate based on the angle of the origin object.

Usage

VGet  Sequence.Object.OriginAngleEnabled, var
VSet  Sequence.Object.OriginAngleEnabled, 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
Boolean variable that will contain the value of the property
value
Boolean value or expression for the new value of the property.

Values

  • 0 - False: False Frame is not influenced by the OriginPoint object angle
  • -1 - True: Frame rotates with the OriginPoint object angle

Default False

Remarks
Setting the OriginAngleEnabled property to “True” enable a frame to rotate by the angle of the origin object. For example, you can set the OriginPoint to a Polar object and set OriginAngleEnabled to “True”. The frame will rotate according to the angle of the Polar object.

If the YAxisObject is set to a value other than Screen, the YAxisObject setting is given preference.

See Also
Frame Object