getnumreqs

Returns the number of requests for a given data type. 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: Available only with Activate commercial edition.

Syntax

getnumreqs(filename, datatype)

getnumreqs(filename, subcase, datatype)

R = getnumreqs(...)

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 requests.

Example

Basic getnumreqs example without subcase:
getnumreqs('Path/To/File/ANGACC','Angular Acceleration')
R = 5
Basic getnumreqs example with subcase:
getnumreqs('Path/To/File/bezel.res','Scalar','Velocities (c)')
R = 237