poI3DViewCtrl GetLastRestoredView

Gets the view name of the last restored view.

Syntax

poI3DViewCtrl_handle GetLastRestoredView

Application

HyperView Tcl Query

Description

This command retrieves the name of the last restored view. If no view was previously selected, “Current View” is returned.

Example

To restore the current view 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 GetLastRestoredView 
puts "Last restored View: [viewctrl_handle GetLastRestoredView]"
hwi CloseStack

Error

Returns an error if the view control handle is invalid.