Specifications
255
you will get the error message:
Folder assignment expected for this object.
What the message means is that this type of assignment is not allowed. You may
argue that the error message is misleading because '=' is indeed an assignment
operator. However, operators in AnyScript are polymorphic, and they are interpreted
in the context of the variables they operate on, and for two folders no proper
assignment operator exists. So, while rhetorically correct, what the statement really
means is that you are missing an ampersand, '&'. Assignment of folders to each other
must be by reference like this.
AnyFolder &MyFolderCopy = MyFolder;
Missing expected
members
Some classes in AnyScript have members that must be initialized. For instance, this
declaration
AnySeg arm = {
Mass = 12;
};
will produce the error:
Obligatory initialization of member : AnyVec3 Jii is missing.
The reason is that AnySeg has a property called Jii which must be given a value before
the definition is complete. Similarly, some objects have properties that are
untouchable. This declaration:
AnySeg arm = {
t = 12;
};
also causes an error:
t : Initialization denied.
because t is a protected variable. It is set automatically by the system and cannot be
assigned a value by the user.
Run-time errors
Run-time errors occur during analysis of a successfully loaded model. Their nature and remedies are
completely dependent on the nature of the study. Please refer to the tutorial "A study of studies
" for further
information.
AnyBody Technology A/S · Niels Jernes Vej 10 · DK-9220 Aalborg Ø · Denmark · Tel. +45 9635 4286 · Fax. +45 9635 4599
Copyright (c) AnyBody Technology A/S · 2006 · All rights reserved · Email webmaster@anybodytech.com










