- Mapdl.cwd(dirpath='', **kwargs)#
Changes the current working directory.
dirpathmust not contain any singular quotations/apostrophes. These are not supported in APDL.
APDL Command: /CWD
The full path name of the new working directory.
After issuing the /CWD command, all new files opened with no default directory specified (via the FILE, /COPY, or RESUME commands, for example) default to the new
Change MAPDL’s working directory to
"C:/temp". This assumes that MAPDL running on Windows.
MAPDL on Linux example: