PM_GET_NAME_OF_NEXT_VIEW

Syntax

string_val = PM_GET_NAME_OF_NEXT_VIEW ( source, next, status );
Input arguments
string source Whether to scan work views or drawing views:
To scan work views, set 'source' to an empty string.
To scan drawing views, set 'source' to a drawing's name.
Input/output arguments
int next Next view.
Output arguments
int status 0 – View is closed
1 – View is open.

Return Values

Success:
string Name of the view.
Failure:
int 0 There are no more views.

Description

This function is intended to be used in a loop to scan the names of work views or drawing views. The variable 'next' is incremented during the call. It should be set to 0 before the scan loop begins.

Each call returns the name and status of the next view.