The
SearchText function (Static Text element) is an exception. This function adds search words to those already specified on the Static Text tab.The additional constraints entered in the Advanced pre-search relations pane can only refer to elements located above the current element in the FlexiLayout tree. The only exceptions are the subelements of the same Repeating Group element, which can refer to previous instances of subelements located in the same group below the given element.
Examples
Specify different values for the same parameter
Sometimes you need to assign different values to the same parameter. To do this, use theif... then operator:
Limit the search area
The search area can be specified by using any of the types that define an image area:Rect, RectArray, Region. It can also be specified by using an expression that returns any of these types. The result of calculating the expression is passed as an argument to the RestrictSearchArea() function:
Cancel the search for an object
For some documents, the presence of one object on the image automatically excludes another object. In other cases, you might want to look for a particular object only if certain conditions have been met. You can tell the program not to look for a specific object by using theDontFind() command. Once the command is executed, the program formulates a null hypothesis for the corresponding object:
Select a hypothesis
Sometimes several image objects meet the conditions specified in an element. This means that the program formulates several hypotheses. If you need to select from this set only the hypothesis that is located closest to some other object or point on the image, you can use one of the following functions:You cannot use several
Nearest functions at once.Search on multi-page documents
The program treats a multi-page document as a single entity and can look for an element of a multi-page document without reference to an exact page. To specify that an element can be found in the bottom half of any page:SearchElements.OtherElement begins:
SearchElements.RepeatableGroup:
SearchElements.Table:
