poITensorCtrl SetShowValueMode

Sets the show value mode used for drawing tensor values in the graphics area.

Syntax

tensor_handle SetShowValueMode mode_name state

Application

HyperView Tcl Modify

Description

This command sets the show value mode used for drawing tensor values in the graphics area. This command will control whether shear values, normal values, or all values of the tensor will be drawn.

Inputs

mode_name
The possible values are: all, normal, or shear.
state
The possible values are: true or false.

Example

To turn on the shear values of a tensor in the graphics area, use the following commands:
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
client_handle GetModelHandle model_handle [client_handle GetActiveModel]
model_handle GetResultCtrlHandle result_handle
result_handle GetTensorCtrlHandle tensor_handle
tensor_handle SetShowValueMode shear true
hwi CloseStack

Errors

Returns a non-zero value if an error occurs.