PM_GET_HANDLE_OF_OPENED_VIEW

Syntax

handle_val = PM_GET_HANDLE_OF_OPENED_VIEW ( view_name, flags );
Input arguments
string view_name Name of the view.
int flags Whether the view is a work view or a drawing view:
0 – Get a handle to a work view.
PM_VFLG_IN_DRAWING – Get a handle to a drawing view.

Return Values

Success:
handle view_handle Handle to the open view.
Failure:
int 0 View is not open.

Description

This function determines if a given view is open and returns a handle to that view.

Handles returned by this function are the same as those returned by PM_CREATE_VIEW and PM_OPEN_VIEW.