gettypeindex
Return the index of a datatype in a data file. The function has two forms. Use the first form when there is zero or at most one subcase and second form when there are multiple subcases.
Attention: Valid only with Altair CAE Readers and Writers Extension.
Syntax
gettypeindex(filename, datatype)
gettypeindex(filename, subcase, datatype)
R = gettypeindex(...)
Inputs
- filename
- Path of the file.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name in the file.
Outputs
- R
- Index of data type.
Examples
Basic gettypeindex example with
subcase:
gettypeindex('Path/To/File/bezel.res','Complex','Normal X at Z1 (c)')
R = 5
Basic gettypeindex example without
subcase:
gettypeindex('Path/To/File/ANGACC','Angular Acceleration')
R = 2