PM_OPEN_VIEW
Syntax
handle_val = PM_OPEN_VIEW ( view_name, flags, screen, display );
- Input arguments
-
string view_name Name of the view to open. int
flags
Whether to open a work view or a drawing view:
0 – Open a work view. Plant Modeller will handle internally whether the view is shaded or not.
PM_VFLG_IN_DRAWING – Open a drawing view. Shaded views are not allowed in drawings.
handle screen If 'screen' is an empty string, then this function creates a new window where the view will be displayed. Otherwise it specifies where the new window will be created. For example, you can enable OpenGL in a canvas window by defining 'screen' as the handle of the canvas window. If the value is ".DUMMY", the view is not displayed on the screen. string display This variable is for future use. Now it is only used as an empty string.
Return Values
- Success:
-
handle Handle to the opened view.
- Failure:
-
int 0 Failed to open the view.
Description
This function opens an existing view whose name is defined in the variable 'view_name'.
The handle returned from this function is to be used in calls to other view related-script functions.