Lock to page baseline grid uses one of three following values:
•Page modules height, read from Page.GetModH and enabled if globalUseModulesAsVg is True, and Page.GetModH > 0 (recommended, the simplest way to use it and it can be displayed).
•Page vertical nudge, read from Page.GetVertGrid, and enabled if globalUseModulesAsVg is False, and Page.GetVertGrid > 0 (this baseline grid cannot be displayed)
•Fixed value in the EditorialConfig, read from EdConfig.glbVertGrid, and used if globalUseModulesAsVg is False, and Page.GetVertGrid = 0 (just to avoid malfunctioning if nothing is configured).
Enabling/disabling globalUseModulesAsVg
In a new GN4 system, globalUseModulesAsVg is False by default, to ensure the compatibility with the previous system.
To define globalUseModulesAsVg as True, locate the line containing globalUserModulesasVg in the <Dict> node of the EditorialConfig or add it if there’s not one, and set its value to "-1":
<Item Name="globalUseModulesAsVg" Value="-1" />
Then, set the page baseline grid on the master level as explained in Setting up the page baseline grid on a master by modules, or on layer level, as explained in Setting up the page baseline grid on a layer using modules.
To define globalUseModulesAsVg as False after you've set it to True, locate the line containing globalUserModulesasVg in the <Dict> node of the EditorialConfig, and set the value to 0:
<Item Name="globalUseModulesAsVg" Value="0" />
Note
If globalUseModulesAsVg is False and Page.GetVertGrid is 0 for the current master and for the current layer, Fred4 uses the value EdConfig.glbVertGrid.
If not changed in your EditorialConfig, it is 10000mpt by default.
To define different value of glbVertGrid, locate the line containing glbVertGrid in the <Dict> node or add it if there’s not one:
<Item Name="glbVertGrid" Value="9500" />
(this example is for 9.5pt grid).
The value has to be the same as the value of the grid in the format or in the style applied (if different than 0).
To set nudge on the master, open master and then use the menu command on the Layout menu.
About lock to grid value
Lock to grid value (true or false) is stored in SystemUserOptions.AFCS_GridLock.