poIVectorCtrl SetDataType

Sets the data type for the vector control.

Syntax

vector_handle SetDataType data_type_name

Application

HyperView Tcl Modify

Description

This command sets the data type to be applied for a vector plot (for example, Displacement, Velocity, etc.). If the data type name contains spaces, then the name must be specified inside double quotes (for example, "SPC force"). The data type name must exist in the list of available data types in the results file in order to display a proper vector 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 vector plot to "Displacement" 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 GetVectorCtrlHandle vector_handle
vector_handle SetDataType Displacement
hwi CloseStack

Errors

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 vector plot will not display anything.