*INQUIRE
*INQUIRE, Obj,
Property, Var1
Retrieves properties of an existing APDL Math object.
Valid Products: Pro | Premium | Enterprise | PrepPost | Solver | AS add-on
ObjName of the vector or matrix of interest.
PropertyObject property to get:
DIM1
—
First dimension of a matrix, or size of a vector.
DIM2
—
Second dimension of a matrix.
Var1Name 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%