poIContourCtrl SetDataType

Sets the data type for the contour control.

Syntax

contour_handle SetDataTypedata_type_name

Application

HyperView Tcl Modify

Description

This command sets the data type to be applied for a contour plot (for example, Stress, Velocity, etc.). If the data type name contains spaces, then the name must be specified inside double quotes (for example, "Effective plastic strain"). The data type name must exist in the list of available data types in the results file in order to display a proper contour plot. You can obtain a list of valid data types from the result control by using the GetDataTypeList command.

Inputs

data_type_name
The name of the data type to be set.

Example

To set the data type in a contour plot to "Effective plastic strain" for a result file containing the following data type list {"Displacement" "Stress" "Effective plastic strain"}:
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 GetContourCtrlHandle contour_handle
contour_handle SetDataType "Effective plastic strain"
hwi CloseStack

Error

This command always returns a success even if the data type name does not exist in the available data type list. In the case of an invalid data type, the contour plot will display a gray color only. If no results were attached, the contour handle is not retrievable, thus the command will not be called.