PM_DELETE_VIEW

Syntax

int_val = PM_DELETE_VIEW ( view_name, in_active_drawing );
Input arguments
string view_name Name of the view.
int in_active_drawing True if the view is deleted from an active drawing. Otherwise the view is a work view.

Return Values

Success:
int 0 Deleting the view succeeded.
Failure:
int -1 Script interface error.
int -2 View does not exist.
int -3 View is open.
int -4 Some other error related to removing view files.

Description

This function deletes a given view. Only closed views can be deleted.

Use PM_VIEW_EXISTS to check whether the view exists.

Use PM_GET_HANDLE_OF_OPENED_VIEW to check whether the view is currently open.