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.
Syntax
R = getlayerindex3d(filename, datatype, layername)
R = getlayerindex3d(filename, subcase, datatype, layername)
Inputs
- filename
- Path of the file.
- subcase
- Subcase name or index in the file.
- datatype
- Data type name or index in the file.
- layername
- Layer name to find the index of.
Outputs
- R
- Index of the layer.
Examples
Basic getlayerindex3d example with subcase:
R = getlayerindex3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2,'Z2')
R = 2