setmsolveapi
Set the MotionSolve API, which is a Python-based package part of the installation.
Syntax
setmsolveapi()
setmsolveapi(searchdir)
out1 = setmsolveapi(...)
[out1, out2] = setmsolveapi(...)
Inputs
- searchdir
 - Altair folder that will be used to set up the environment. Without any argument, the function will try to set the environment based on HW_ROOTDIR, just like setaltairfolder.
 
Outputs
- out1
 - 1 (success) or 0 (failure) depending on whether the package was imported or not.
 - out2
 - Error message (if failure).
 
Examples
Example with one input:
setmsolveapi('C:\Program Files\Altair\2022')
	  ans = 1
	  Example with one input using a folder that does not exist:
[out1, out2] = setmsolveapi('C:\Program Files\Altair\2021');
	  out1 = 0
out2 = MotionSolve directory does not exist
    Comments
In order to verify what is the path that will be used if no input argument is giving, use getenv('HW_ROOTDIR')