Mapdl.psearch(pname='', **kwargs)

Specifies a directory to be searched for “unknown command” macro files.



Path name (64 characters maximum, and must include the final delimiter) of the middle directory to be searched. Defaults to the user home directory. If Pname = OFF, search only the ANSYS and current working directories. If Pname = STAT, list the current middle directory and show the ANSYS_MACROLIB setting.


Specifies the pathname of a directory for file searches when reading “unknown command” macro files. The search for the files is typically from the ANSYS directory, then from the user home directory, and then from the current working directory. This command allows the middle directory searched to be other than the user home directory.

This command is valid only at the Begin Level.