Specifications
72
nearly as interesting as running the Windows version of the AnyBody Modeling System. So why bother?
Well, the command line version of the AnyBody Modeling System faithfully performs all the computations
you ask it to through the command line. But what good does it do you, and how can you access the results?
You could issue print or printdown commands and have the results listed on the screen. It would give you a
whole lot of probably completely useless numbers to look at.
A more clever way to use the command line version is to insert AnyOutputFile objects into the AnyScript
model. If you load the demo.outputfile.any model you have just worked on into the Windows version of the
AnyBody Modeling System, you will notice that it contains two definitions of AnyOutputFile objects inside the
ArmStudy.
// The study: Operations to be performed on the model
AnyBodyStudy ArmStudy = {
AnyFolder &Model = .ArmModel;
RecruitmentSolver = MinMaxSimplex;
Gravity = {0.0, -9.81, 0.0};
AnyOutputFile OutFile1 = {
FileName = "out1.csv";
AnyVar MaxAct = .MaxMuscleActivity;
AnyFloat TestTensorConst = {
{1, 2, 3},
{1, 2, 3}
};
AnyFloat TestTensor = {
{
{1, 2, 3},
{1, 2, 3}*2,
{1, 2, 3}*3,
{1, 2, 3}*MaxAct
},
{
{1, 2, 3},
{1, 2, 3}*2,
{1, 2, 3}*3,
{1, 2, 3}*MaxAct
}
};
};
AnyOutputFile OutFile2 = {
FileName = "out2.csv";
Search = {"ArmModel.Muscles.*.Act*", "ArmModel.Muscles.*.Ft"};
SepSign = ";";
};
};
Furthermore, if you open a file manager and look at the contents of the directory where you are running the
problem, you will notice that two new files have been generated: out1.csv and out2.csv. They are comma-
separated files with a semicolon as separator between numbers as defined in the AnyOutputFile above.
If you have software on your computer that is associated with csv files, such as Microsoft Excel, then you
can double-click any of the two files and open it. You will notice that it contains columns of data dumped
from the analysis. The precise nature of the data is defined in the file's header, and it has been determined
by the variables defined inside the corresponding AnyOutputFile object. Please refer to the reference manual
for further information.










