poI3DViewCtrl SaveView

Captures the current view parameters and saves it to a memory view with the given name.

Syntax

poI3DViewCtrl_handle SaveView view_name

Application

HyperView Tcl Modify

Description

This command memorizes the current view settings with a given name. If no name is specified, a default name will be given for the view.

Inputs

view_name
The name of the view.

Example

To save the current view matrix with the given name:
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 GetClientHandle client_handle
window_handle GetViewControlHandle viewctrl_handle
viewctrl_handle SaveView "view name"
puts "Current View: [viewctrl_handle GetCurrentView]"

hwi CloseStack

Error

Returns an error if the view control handle is invalid.