Global constants are used to specify additional search criteria (element’s Properties dialog box, Advanced tab, Advanced pre-search relations and Advanced post-search relations sections; block’s Properties dialog box, Expression field).
| Name | Value | Type |
|---|---|---|
| RomanNumerals | ”I V v X x” | String |
| SomeRect | Rect( 5mm, 10mm, 20mm, 50mm ) | Rect |
| FirstPageRect | Page( 1 ).RectGlobal | Rect |
| UpperHalfOfFirstPage | Rect(FirstPageRect.Left, FirstPageRect.Top FirstPageRect.Right, FirstPageRect.Height / 2 ) | Rect |
| UpperHalfOfFirstPage 1 | Region( UpperHalfOfFirstPage ) | Region |
| TotalLineHeightOfFirstPage | Page( 1 ).AverageLineHeight() + Page( 1 ).AverageInterlineInterval() | Distance |
| Q_50_Percent | Quality( 0.5 ); | Quality |
Adding, changing, and removing global constants
To add a global constant:- Select the Properties… command from the FlexiLayout menu (or right-click in the FlexiLayout window and select the Properties… command from the shortcut menu).
- In the Properties dialog box, click the Constants tab.
- Click Add…
- Type a name and/or value for the constant and click OK.
- Select the Properties… command from the FlexiLayout menu (or right-click in the FlexiLayout window and select the Properties… command from the shortcut menu).
- In the Properties dialog box, click the Constants tab and select the constant you wish to change.
- Click Edit…
- Type a new name and/or value for the constant and click OK.
- Select the Properties… command from the FlexiLayout menu (or right-click in the FlexiLayout window and select the Properties… command from the shortcut menu).
- In the Properties dialog box, click the Constants tab and select the constant you wish to remove.
- Click Delete.
A constant name must be a valid identifier, i.e. it must consist of the characters ”_ a b c d e f g h i j k l m n o p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z” and digits. The first character in the name must not be a digit. Constant names must not contain blank spaces or special symbols.
