Specifications

54
The third tab in the tree view is named Classes. It gives you access to a tree of the predefined classes in the
system. From this tree you can insert templates of new objects. This eliminates much of the need to
remember the syntax of each object and saves you many lookups in the reference manual. The use of the
Classes Tree is described in the Getting Started with AnyScript tutorial
.
There are a couple of more tree views. These contains global objects that are available to your code. Global
AnyScript constants are listed in one tree and global AnyScript function in another.
Find and Replace
No editor is complete without a find and replace function. The function in the AnyScript editor is not much
different from what you find elsewhere. It is accessible through the Edit menu or by the keyboard shortcuts
Ctrl-F for find
Ctrl-H for find and replace.
F3 repeats the previous find operation.
Support for External Editors
Some users have very strong preferences when it comes to editors. The AnyBody Modeling System allows
you to use any text editor you like to author your models as long as it saves the files on an ascii text format.
The Main file must be open in the AnyBody Modeling system initially to allow compilation. Once you have
compiled it, the system remembers the current Main file, and it will re-compile it every time you press F7.
This means that you can edit and save any Main or include file by means of an external editor and compile it
from inside the AnyBody Modeling System.
So what happens if you have a file open in an AnyBody Editor Window, and you are simultaneously editing it
in an external editor? Well, every time you press F7 to compile the model, the system will attempt to save
any changed files to pass them on to the compiler from the disk during the compilation. But before the
system saves the file, it checks if the file has been updated from elsewhere, for instance from an external
editor, and the system will ask you if it is supposed to load the newer file into the AnyBody Editor Window.
If you answer yes, the new file is loaded and used in the compilation.
If you answer no, the old file is saved and used in the compilation, overwriting whatever you have
saved from the external editor.
Let us venture to have a closer look at the Model View
Lesson 3: The Model View Window
The Model View window is the system's graphical representation of the model. You can open a Model View
window by the Window->Model View (new) command.
The Model View displays a special type of model elements that we usually call "Draw Objects". These are the
objects you can attach to the segments, muscles, nodes, surfaces and such on the model. Most classes in
AnyScript have corresponding draw classes, and the library of draw classes is constantly being extended and
improved.
When active, the Model View updates the model as the computation proceeds. The update can involve the
elements moving on the screen or colors or shapes changing to reflect the state of the model such as, for
instance, muscle forces.