hwIDataFile SetSubcase

Sets the current subcase.

Syntax

hwIDataFile_handle SetSubcasesubcase

Application

HyperWorks Tcl Modify

Description

hwIDataFile GetDataTypeList returns the list of data types for the current subcase only.

Inputs

subcase
The name of the subcase to be made current. This name must match exactly the subcase name in the data file.

Example

To get the list of available subcases from a data file:
hwi GetSessionHandle mySessionName
mySessionName GetDataFileHandle myDataFile "indy.req"
myDataFile GetSubcaseList subcase_list
myDataFile SetSubcase "Displacement"
myDataFile GetSubcase
myDataFile GetDataTypeList type_list

Error

Success (0) or an error code.
3 = HW_InvalidHandle
The specified data file handle is invalid.
4 = HW_InvalidArgs
The specified subcase does not exist.