PM_SYNC_VIEWS_TO_SCREEN

Syntax

int_val = PM_SYNC_VIEWS_TO_SCREEN ( );

Return Values

Success:
int 0 Synchronization succeeded.
Failure:
int -1 Script interface error.

Description

This function makes sure that all changes made to open views will be visible on the screen. This is needed especially for re-rendering of shaded views. Usually this is done when Plant Modeller becomes interactive. Scripts that do not become interactive, but still want to show to the user what is going on, should periodically call this function.