SUSPENDUPDATES

SUSPENDUPDATES is intended to be used with RESUMEUPDATES .

Prevents any UI editor windows from being updated by ZPL commands while suspended.  This command can greatly speed up macro execution when performing many updates to the system, such as inserting hundreds or thousands of merit function rows.

The number of suspend and resume calls are reference counted such that no updates will be performed until RESUMEUPDATES is encountered as many times as SUSPENDUPDATES (or the macro completes execution).

Note that changes will still be made to the internal lens state, however the user interface will not reflect the changes.

Also note that the UI is not automatically updated when RESUMEUDPATES is called; to do so, use the UPDATE EDITORS command.

Example:

SUSPENDUPDATES
n = 5
FOR i = 1, n, 1
INSERTMFO i 
SETOPERAND i, 1, ONUM("OPDX")
SETOPERAND i, 6, (i/n)
SETOPERAND i, 8, 0
SETOPERAND i, 9, 1
NEXT
RESUMEUPDATES 
UPDATE EDITORS

Next: