/INQUIRE, StrArray
, FUNC
Returns system information to a parameter.
StrArray
Name of the "string array" parameter that will hold the returned values. String array parameters are similar to character arrays, but each array element can be as long as 248 characters. If the string parameter does not exist, it will be created.
FUNC
Specifies the type of system information returned:
Returns the pathname of the login directory on Linux systems or the pathname of the default directory (including drive letter) on Windows systems.
Returns the pathname of the ANSYS docu directory.
Returns the pathname of the ANSYS APDL directory.
Returns the pathname of the ANSYS executable directory.
Returns the pathname of the directory in which the license file resides.
Returns the name of the user currently logged-in.
Returns the pathname of the current directory.
Returns the current Jobname
.
Returns rst directory (FILE command).
Returns rst file name (FILE command).
Returns rst file extension (FILE command).
Returns path used for "unknown command" macro (/PSEARCH command).
Returns the current output file name (/OUTPUT command).
If FUNC
=ENV, the command format is /INQUIRE,StrArray
,ENV,ENVNAME
,Substring
. In this
instance, ENV specifies that the command should return the value of
an environment variable. The following defines the remaining fields:
ENVNAME
Specifies the name of the environment variable.
Substring
If Substring
= 1, the first
substring (up to the first colon (:)) is returned. If Substring
= 2, the second substring is returned, etc.
For Windows platforms, the separating character is semicolon (;).
If this argument is either blank or 0, the entire value of the environment
variable is returned.
If FUNC
= TITLE, the command format
is /INQUIRE,StrArray
,TITLE,Title_num
. In this context, the
value of Title_num
can be blank or 1 through
5. If the value is 1 or blank, the title is returned. If the value
is 2 through 5, a corresponding subtitle is returned (2 denoting the
first subtitle, and so on).
The /INQUIRE command can also return information
about specified files within the file system. For these capabilities,
the format is /INQUIRE,Parameter
,FUNC
,Fname
, Ext
, --
. The following defines
the fields:
Parameter
Name of the parameter that will hold the returned values.
FUNC
Specifies the type of file information returned:
Returns a 1 if the specified file exists, and 0 if it does not.
Returns the date stamp
of the specified file in the format yyyymmdd.hhmmss
.
Returns the size of the specified file in MB.
Returns the status of the write attribute. A 0 denotes no write permission while a 1 denotes write permission.
Returns the status of the read attribute. A 0 denotes no read permission while a 1 denotes read permission.
Returns the status of the execute attribute (this has meaning only on Linux). A 0 denotes no execute permission while a 1 denotes execute permission.
Returns the number of lines in an ASCII file.
Fname
File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.
Ext
Filename extension (eight-character maximum).
--
Unused field.