change_default_mechanical_path#

ansys.tools.path.change_default_mechanical_path(exe_loc)#

Change your default Mechanical path.

Parameters:
exe_locstr

Full path for the Mechanical executable file to use.

Return type:

None

Examples

On Windows:

>>> from ansys.tools.path import change_default_mechanical_path, get_mechanical_path
>>> change_default_mechanical_path('C:/Program Files/ANSYS Inc/v231/aisol/bin/win64/AnsysWBU.exe')
>>> get_mechanical_path()
'C:/Program Files/ANSYS Inc/v231/aisol/bin/win64/AnsysWBU.exe'

On Linux:

>>> from ansys.tools.path import change_default_mechanical_path, get_mechanical_path
>>> change_default_mechanical_path('/ansys_inc/v231/aisol/.workbench')
>>> get_mechanical_path()
'/ansys_inc/v231/aisol/.workbench'