Specifications

23
// Todo: Add points for grounding
// of the model here
}; // Global reference frame
// Segments
AnyFolder Segs = {
}; // Segs folder
}; // ArmModel
Did you notice that the word AnyFolder turned blue as soon as you typed its last letter? If it did not, you
have mistyped something. Try loading the model by clicking the
icon (or pressing F7). If you expand
the ArmModel branch in the tree view, you should see a new, empty branch named Segs. It is the new
folder you just defined. We are now ready to add a segment to the model, and this would probably be a
good time to introduce you to the object inserter.
If you look at the left hand side of the tree view in the editor window, you will notice tabs running down the
vertical edge. The tabs give you access to different tree views or let you close the tree view completely if
you would rather use the space for something else. One of the tabs is called "Classes" and it produces a tree
that has two branches at its root. Both of these branches contain all the predefined classes in AnyScript. In
the first branch, "ClassTree", the classes are ordered hierarchically. This reflects the object-oriented idea
that classes inherit properties from each other. This might be a way of locating a class with particular
properties if you are not sure of the class name.
The other branch, "Class List", simply contains an alphabetical list of all the classes. This is useful if you
know the name of the class you are looking for. Try opening each of the two trees and look for the class
AnySeg. Then make sure the cursor in the editor window is located inside the newly defined AnyFolder Segs.
Finally, right-click the AnySeg class name in the tree and choose "Insert object". You should get this:
// Segments
AnyFolder Segs = {
AnySeg <ObjectName>
{
//r0 = {0, 0, 0};