getlayerindex3d

Returns the index of a layer for a given data type using the 3D CAE Readers. The function has two forms. Use the first form when there are no subcases and second form when there are multiple subcases.

Attention: Valid only with Altair CAE Readers and Writers Extension

Syntax

R = getlayerindex3d(filename, datatype, layername)

R = getlayerindex3d(filename, subcase, datatype, layername)

Inputs

filename
Path of the file.
Type: string
subcase
Subcase name or index in the file.
Type: string | int
datatype
Data type name or index in the file.
Type: string | int
layername
Layer name to find the index of.
Type: string

Outputs

R
Index of the layer.

Examples

Basic getlayerindex3d example with subcase:

R = getlayerindex3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,'Z2')
R = 2