Specifications
53
The Model Tree offers you several options to go from the tree to associated places the AnyScript code. There
are, however, also options to go the opposite way, i.e. from the code to the Model Tree. Try right-clicking
the code. You will them get a pop-up menu with several editor options. One of these is "Locate in Model
Tree". It will probably be greyed, i.e. disabled, because you have not selected anything that can be related
to the tree. But if you try highlighting an object name in the code it should become active. Selecting this will
bring you to the specific object in the Model Tree. In some cases, there is not a single clear one-to-one
correspondance between the code location and the Model Tree. This happens if the code, you look at, is in
an include file that have been included several times in the model. In such cases, the Editor will provide you
with a list of options to select from.
As you can see, there are also other tree views available. Clicking the Files tab will give you an overview of
the model's include file structure. Models in AnyScript are often divided over several files where one main
file links to other files, which link on to other files and so on. The links are realized by means of include
statements in the AnyScript code:
#include "includefile.any"
The File Tree is very unimpressive in this model because it does not have any include files, but below you
see a File Tree from a more complicated model:
The leaves in the tree are marked by two different icons. The icon with the little red # sign points to a place
in the model with an include statement. If you double-click such a line you will be taken to the position of
the include statement. If you Click the + to the left of the icon, the branch folds out, and you see another
icon below without the # sign. If you click this icon, the include file itself opens up in an editor window.










