View Management

View management functions can be used for managing work views and drawing views and the objects that are shown in the views.

Usage

Use PM_GET_NAME_OF_NEXT_VIEW to loop through existing views. For each view, the function gets the name of the view and information on whether the view is open or closed. If the required view is already open, you can get its handle with PM_GET_HANDLE_OF_OPENED_VIEW. Otherwise, you can use PM_OPEN_VIEW to open the view and gets its handle. Then you are able to use those functions that require the view handle as input.

To create a new view, use PM_VIEW_NAME_IS_VALID to ensure that the intended name is valid, PM_CREATE_VIEW to create the view, and PM_SET_VIEW_PARAMETERS to set the parameters.

You can use PM_RAISE_VIEW to set the view to be the topmost window and, optionally, the active one.

You can use PM_OUTPUT_VIEW_REBUILD_SCRIPT to output a rebuild script for a given view, and you can plot a view with PM_PLOT_VIEW.

Use PM_CLOSE_VIEW to close a view and PM_DELETE_VIEW to delete it.