getnumlayers3d

Returns the number of layers within a given data type. The function has two forms. Use the first form when there is zero or at most one subcase and the second form when there are multiple subcases.

Attention: Valid only with Altair CAE Readers and Writers Extension

Syntax

R = getnumlayers3d(filename, datatype)

R = getnumlayers3d(filename, subcase, datatype)

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

Outputs

R
Number of layers.

Examples

Basic getnumlayers3d example with subcases:
R = getnumlayers3d('tutorials/flatPlateModelingTechniques_OS.h3d',1,2)
R = 3