poI3DViewCtrl SetActiveView

Sets a view as active or not active.

Syntax

poI3DViewCtrl_handle SetActiveView active name

Application

HyperView Tcl Modify

Description

In order to edit a stored view, it must be marked as active. Only one view, other than the current view, can be marked active. Whatever is currently displayed in the window will always be the same as the active view.

Inputs

active
Boolean value that specifies whether to activate or deactivate a view.
name
Specifies the name of the view to be activated.

Example

To set "View 1" as active:
hwi OpenStack
hwi GetSessionHandle session_handle
session_handle GetProjectHandle project_handle
project_handle GetPageHandle page_handle [project_handle GetActivePage]
page_handle GetWindowHandle window_handle [page_handle GetActiveWindow]
window_handle GetViewControlHandle view_handle
view_handle SetActiveView true “View 1”
hwi CloseStack

Error

Returns HW_InvalidHandle if the view handle is invalid.