get_mechanical_path#

ansys.tools.path.get_mechanical_path(allow_input=True, version=None, find=True)#

Acquires Ansys Mechanical Path

First, it looks in the configuration file, used by save_mechanical_path Then, it tries to find it based on conventions for where it usually is. Lastly, it takes user input

Parameters:
allow_inputbool, optional

Allow user input to find Ansys Mechanical path. The default is True.

versionfloat, optional

Version of Ansys Mechanical to search for. For example version=22.2. If None, use latest.

find: bool, optional

Allow ansys-tools-path to search for Ansys Mechanical in typical installation locations

Return type:

Optional[str]