*restoreviewmask

Restores a view saved using *saveviewmask.

Syntax

*restoreviewmask view_name visible

Type

HyperMesh Tcl Modify

Description

Restores a view saved using *saveviewmask. The orientation and visible entities can be restored.

Inputs

view_name
The name of the view to restore.
visible
A flag indicating whether to restore the visible entities or not. Valid values are:
0 - Restore the visible entities and view orientation.
1 - Restore the view orientation only.
2 - Restore the visible entities only.

Example

To restore the view with the name "my_view", including the orientation and visible entities:

*restoreviewmask "my_view" 0

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}