Console Application AnyBody v6.1.1

Hi

Some time back I had made a macro for batch processing multiple simulations using the AnyBody Console application. This was working fine with version AnyBody v6.0.7. Then, I upgraded to v6.1.1 and the macro doesn't work anymore with the Console Application. The console application starts as normal but I get the following error:

Macro command > //Trial 1212

Macro command > load "Final8.main.any" -def TrialNumber = "1212"

Loading Main : "C:\Users*\Final8.main.any"
Scanning...
ERROR(SCR.SCN9) : C:\Users*
\libdef.any(8) : 'AnyBodyCon.exe\AMMR\Body\AAUHuman' : Path does not exist.
ERROR(SCR.SCN9) : C:\Users*\libdef.any(24) : 'AnyBodyCon.exe\AMMR\Body\AAUHuman\ToolBox/' : Path does not exist.
ERROR(SCR.SCN1) : C:\Users*
\libdef.any(26) : Cannot open file : AnyBodyCon.exe\AMMR\Body\AAUHuman/HumanModel.defs.any
Model loading skipped

Macro command > operation Main.RunApplication

Error : Main.RunApplication : Unresolved object.

Macro command > run

Error : run : command unexpected while operation is not selected.

Macro command > reset

Error : reset : command unexpected.
>

If I try the same macro with the console application of v6.0.7, everything still works fine. I would also add that the macro works fine with the GUI version of v 6.1.1.

Could you suggest me something? Meanwhile, is there a way to run multiple macros with the GUI version? Usually, I double click the macro file and it launches the GUI version and starts the macro. Subsequently, if I double click the macro again (or if AnyBody GUI is already open), it opens the macro file for editing without running it. How could I run multiple macros using the GUI, if it's possible?

Regards
-Dave

Hi Dave,

It looks like there is a problem in your libdef.any file in your model, please edit this file so that it can load the model, it looks like the path for the body model is wrong, do this debugging in the GUI version of AMS.

The error indicates that it can not find items in the human model

ERROR(SCR.SCN9) : C:\Users\****\libdef.any(8) : 'AnyBodyCon.exe\AMMR\Body\AAUHuman' : Path does not exist.
ERROR(SCR.SCN9) : C:\Users\****\libdef.any(24) : 'AnyBodyCon.exe\AMMR\Body\AAUHuman\ToolBox/' : Path does not exist.
ERROR(SCR.SCN1) : C:\Users\****\libdef.any(26) : Cannot open file : AnyBodyCon.exe\AMMR\Body\AAUHuman/HumanModel.defs.any

Concerning running multiple instances of macro files in the GUI i am not sure, if there is a way to do this, it will ask around and possibly come back to you on this, but the problem will not be different anyway you should get the exact same error.

Best regards
Søren

Hi Soren

Thank you for your reply. I think there is no problem with the libdef.any file because the same model loads and runs just fine in the GUI version (6.1.1). I am also able to launch the macro to run the simulations in series with the GUI version. And they work just fine with version 6.0.7 as well. In fact, the macro works just fine with the console application of 6.0.7.

In all of the cases I wrote above, I used the same files located in the same directory. I believe, if there is a problem with libdef.any file, the model should fail to load in all of these cases, shouldn’t it?

If there is a way to run multiple instances of macros in the GUI version, it would be great. Please let me know if you find out something. As a matter of fact, I ended up running the same macro with the GUI version of 6.1.1 (except that I had to rearrange my input files in the same folder so they could run in series). Apart from the extra time that the simulations needed, I noticed another peculiar behavior. The software seems to “fatigue” with continuous use. I am sorry I don’t have a strong background in computers and I don’t know if this is normal or unusual behavior. At first, each of my simulation took about 4-5 minutes to complete. After about 3-4 hours of running, the simulations were taking about 6-7 minutes. After about 10 hours of running (this was overnight, so there was no other activity on the computer), each simulation was taking around 9-10 minutes to complete. If I restart AnyBody, everything seems to reset and the simulations take the usual 4-5 minutes at first and then show the same trend.

Regards
-Dave

Hi Dave,

I am unsure why this happens, please try to use absolute paths in the libdef.any instead of the relative paths, and see if this make a difference.

Please also let us know the full name of the folder the AnyBody.exe and AnyBodyCon.exe are placed in, specifically we would like to know if this path contains any special characters.

Concerning the “fatique”, we expect this to related to the output building up and slowing things down, this is something we are trying to improve.

Bets regards
Søren

Hi Soren

You were spot on. This fix worked for me. The AnyBody and AnyBodyCon are installed in the usual Program Files directory
“C:\Program Files\AnyBody Technology\AnyBody.6.1”

In the libdef.any file, I substituted the phrase “<ANYBODY_PATH_INSTALLDIR>” with the complete address “C:\Program Files\AnyBody Technology\AnyBody.6.1”. Everything works fine now.

Thank you so much :slight_smile:
-Dave

p.s: Just for curiosity, were you able to confirm if there is a way to run multiple instances macro in the GUI version? In the end, it’s not so important now that I am able to use the Console application for parallel processing.

Hi Dave,

Glad that it worked,

Concerning the GUI question, we have tested this and it is not possible at the moment.

Best regards
Søren

Hi Dave,

Thanks for pointing our attention to this, we have now fixed this issue for a upcomming release. Then the GUI and console will behave like you would expect.

I am sorry for the trouble this has caused you.

Best regards
Søren

Hi Soren

You are welcome. I am glad that my observations have been useful to improve the software. For now, my troubles were just waiting some more time for the results (in the sense that I wasn’t completely blocked by this problem). But, maybe in the future of for someone else, they could make a bigger difference. I look forward to the next updates and it’s good to know a workaround till then.

I think you and your colleagues are doing a fantastic job in supporting us users and the forum is a great platform to share knowledge with the community of AnyBody users. So many of my questions get answered just by searching around in the forum.

Thank you so much.

Best regards
-Dave