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
.- version
float
,optional
Version of Ansys Mechanical to search for. For example
version=22.2
. IfNone
, use latest.- find: bool, optional
Allow ansys-tools-path to search for Ansys Mechanical in typical installation locations
- allow_inputbool,
- Return type: