ModelOrgFindCenter Property

Applies To
Vision Object: Geometric

Description
A model has a fixed reference point by which a location of the model in the image is indicated. This point is referred to as the model origin. The ModelOrgFindCenter property sets the model origin at the rotation center of the model edge automatically.

Usage

VGet  Sequence.Object.ModelOrgFindCenter, var
VSet  Sequence.Object.ModelOrgFindCenter, 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: Do not set the model origin at the center of the model edge
  • -1 - True: Set the model origin at the center of the model edge

Default: False

Remarks
The model origin can be set anywhere within the region defined by the model window. The origin's coordinates define the model origin relative to the model window's upper left corner, that is, relative to the location of element [0][0] of the model window that defines the model.

The ModelOrgFindCenter property sets the model origin at the rotation center of the model edge. The model origin is not updated automatically when the model window is moved or resized. Use this property to set the model origin at the rotation center of the mode edge as needed.

If this property is set to “True” when the ModelOrgAutoCenter property is “True”, then the ModelOrgAutoCenter property will be automatically set to "False".

If this property is set to “True”, the model origin is updated, and then the property value returns to“False”. That is, the value obtained by VGet is always “False”.

See Also
Anatomy of a Vision Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgX Property, ModelOrgY Property