Running AnyBody with a GUI


I designed a GUI and try to run the console with it.

The code looks like this:

cd('c:\Programme\AnyBody Technology\AnyBody.4.2')
dos('AnyBodyCon.exe/d U:\Shoulder model\Diploma thesis\AMMRV1.0 - 110104\Application\Examples\StandingModel - Kopie\StandingModel.main')

I always get this error:

AnyBody Console Application 
AnyBodyCon.exe version : 4. 2. 1. 1614   
Build : 14788.27660 
Copyright (c) 1999 - 2011 AnyBody Technology A/S 
Warning :  Program argument '-' was not recognized !  
Warning :  Program argument '-' was not recognized !  
Error :  Wrong directory specification in program arguments (--dir='U:\Shoulder' is not a valid directory) 
  AnyBodyCon.exe <arguments> 
  AnyBodyCon.exe MacroFile.anymcr <arguments> 
    /?, -?, --help 
    /d <dirname>, -d <dirname>, --dir=<dirname> 
        Sets current directory to 'dirname'. 
    /m <macrofile>, -m <macrofile>, --macro=<macrofile> 
        Specifies the macro file to execute to 'macrofile'. 

Help? :slight_smile:


I think it could be related to the names of your folders…

please try to use folders which has no spaces in the names…

Best regards

Still not running…

I created a macro which should run my main file with a inverse dynamic analysis


load "U:\Shoulder model\Diploma thesis\AMMRV1.0\Application\Examples\StandingModelKopie\StandingModel.main"
operation Main.Study.InverseDynamics

The AnyBodyConsole shoulb be run from Matlab


function pushbutton1_Callback(hObject, eventdata,handles)

cd('c:\Programme\AnyBody Technology\AnyBody.4.1')
dos('AnyBodyCon.exe /m U:\Shoulder model\Diploma thesis\AMMRV1.0

When I run the mat file I get this message and nothing happens:

AnyBody Console Application 
AnyBodyCon.exe version : 4. 1. 0. 995   
Build : 14575.50880 
Copyright (c) 1999 - 2011 AnyBody Technology A/S

Where is the mistake?

Thank you,

Hi Hauke,

the problem is that you have a space in your file paths. When you supply an argument to an executable in the command line mode - it is read until the first space and will look in your case as “U:\Shoulder”. To avoid that - please use double quotes around the file path (letting the program know that this is still the same argument), like the following:
“U:\Shoulder model\Diploma thesis\AMMRV1.0 - 110104\Application\Examples\StandingModel - Kopie\StandingModel.main”

Best regards,