*INQUIRE

*INQUIRE, Obj, Property, Var1
Retrieves properties of an existing APDL Math object.

Valid Products: Pro | Premium | Enterprise | PrepPost | Solver | AS add-on

Obj

Name of the vector or matrix of interest.

Property

Object property to get:

DIM1

 — 

First dimension of a matrix, or size of a vector.

DIM2

 — 

Second dimension of a matrix.

Var1

Name of the resulting parameter that contains the property value.

Notes

The following example demonstrates using *INQUIRE to get the number of rows and columns of an existing matrix.

*SMAT,K,D,IMPORT,FULL,file.full,STIFF  ! Import the stiffness matrix from an existing FULL file
*INQUIRE,K,DIM1,NROW                   ! Get the first dimension of the stiffness matrix
*INQUIRE,K,DIM2,NCOL                   ! Get the second dimension of the stiffness matrix
/COM, K matrix size: %NROW% x %NCOL%

Menu Paths

This command cannot be accessed from a menu.