PM_REGEN_VIEW

Syntax

int_val = PM_REGEN_VIEW ( view_handle, mode );
Input arguments
handle view_handle Handle of the view.

int

mode

Value specifies whether to completely regenerate or just update the view:
0 – Regenerates the whole view.
1 – Updates the view.
2 – Sets modification time to 0 and regenerates the view.
3 – Sets modification time to 0 and updates the view.

Mode 3 is only meant for visualizing all objects in drawing views. Just updating a drawing will only process objects that already exist in the view and objects that have been modified since the last view modification time.

Return Values

Success:
int 0 Regenerating or updating the view succeeded.
Failure:
int -1 Script interface error.

Description

This function regenerates or updates an open work view or drawing view.