new version 3.0

Hi!
I have a problem with the new version anybody 3.0. I have tried to run
a simple example that worked well in anybody 2.0, but it appears an
error with the includes, inmediately.
I had changed some instructions in repository 6.0, so I have modified
the same in repository 6.1 to it worked well with anybody 6.1, but
another error appears.
I would like to send you the repositories to have a look at them. How
could I do?

Somebody has had the same problem with the new version?
Thanks!

Isabel

Hi Isabel

If you could zip the model and upload it to the file section, then I
could try it.

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “isabelgarciamu”
<isabelgarciamu@…> wrote:
>
> Hi!
> I have a problem with the new version anybody 3.0. I have tried to run
> a simple example that worked well in anybody 2.0, but it appears an
> error with the includes, inmediately.
> I had changed some instructions in repository 6.0, so I have modified
> the same in repository 6.1 to it worked well with anybody 6.1, but
> another error appears.
> I would like to send you the repositories to have a look at them. How
> could I do?
>
> Somebody has had the same problem with the new version?
> Thanks!
>
> Isabel
>

HI Christian,
I have just uploaded the file _LEMUS_Rep6.1_minimo.rar.
Thanks!
Isabel

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Isabel
>
> If you could zip the model and upload it to the file section, then I
> could try it.
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “isabelgarciamu”
> <isabelgarciamu@> wrote:
> >
> > Hi!
> > I have a problem with the new version anybody 3.0. I have tried to run
> > a simple example that worked well in anybody 2.0, but it appears an
> > error with the includes, inmediately.
> > I had changed some instructions in repository 6.0, so I have modified
> > the same in repository 6.1 to it worked well with anybody 6.1, but
> > another error appears.
> > I would like to send you the repositories to have a look at them. How
> > could I do?
> >
> > Somebody has had the same problem with the new version?
> > Thanks!
> >
> > Isabel
> >
>

Hi Isabel

Thanks you. I downloaded it and found the error you were talking about.
To begin with there was an error that came up in both versions of
AnyBody, but that was a minor indentation problem I think.
The problem you was talking about was the one with the AnyVar
body_height = #include “txt\body_height.txt”; right?

The new version of AnyBody is different in the include statement,
because it is not allowed to do that anymore, su I suggest the
solution to the problem is to write the variable in the .any file.
Will this not work for you?

Best regards
Christian, AnyBody Support

— In anyscript@yahoogroups.com, “isabelgarciamu”
<isabelgarciamu@…> wrote:
>
> Hi!
> I have a problem with the new version anybody 3.0. I have tried to run
> a simple example that worked well in anybody 2.0, but it appears an
> error with the includes, inmediately.
> I had changed some instructions in repository 6.0, so I have modified
> the same in repository 6.1 to it worked well with anybody 6.1, but
> another error appears.
> I would like to send you the repositories to have a look at them. How
> could I do?
>
> Somebody has had the same problem with the new version?
> Thanks!
>
> Isabel
>

HI Christian,
This is an awful news, because all of our files are programmed with
the #include statement and it’s impossible for us to write all of the
variables we use in the .any files.
We have been working in this topic for more than a year and I don’t
undestand how the new version isn’t prepared to run with includes.
We have come up against serious difficulties to run simple exercicies
in version 2.0, because a lot of errors appear and we thought thanks
to version 3.0 we could work easily, but the thing is that now, we
can’t use it.
Do you know if it’s possible to do something about it?
Thanks
Isabel

— In anyscript@yahoogroups.com, “AnyBody Support” <support@…> wrote:
>
> Hi Isabel
>
> Thanks you. I downloaded it and found the error you were talking about.
> To begin with there was an error that came up in both versions of
> AnyBody, but that was a minor indentation problem I think.
> The problem you was talking about was the one with the AnyVar
> body_height = #include “txt\body_height.txt”; right?
>
> The new version of AnyBody is different in the include statement,
> because it is not allowed to do that anymore, su I suggest the
> solution to the problem is to write the variable in the .any file.
> Will this not work for you?
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogroups.com, “isabelgarciamu”
> <isabelgarciamu@> wrote:
> >
> > Hi!
> > I have a problem with the new version anybody 3.0. I have tried to run
> > a simple example that worked well in anybody 2.0, but it appears an
> > error with the includes, inmediately.
> > I had changed some instructions in repository 6.0, so I have modified
> > the same in repository 6.1 to it worked well with anybody 6.1, but
> > another error appears.
> > I would like to send you the repositories to have a look at them. How
> > could I do?
> >
> > Somebody has had the same problem with the new version?
> > Thanks!
> >
> > Isabel
> >
>

Hi Isabel

I am sorry about the trouble this causes you; this feature has been
implemented to ensure more meaningful error statements. In the version 3.0
each file must be “correct” AnyScript by itself; this ensures that when a
syntax error occurs it will always point at the location in the script where
the error occurred.

This is the explanation form the release notes of ver 3.0
http://www.anybodytech.com/802.0.html

New handling of EOF (end of file): Now EOF is only allowed after ‘;’. This
implies that #include files now must be well-formed containing only nicely
closed AnyScript statements. For instance this implies that all types of
parenthesis and braces must be opened and closed in the same file.
Previously an #include file could contain any smaller or larger piece of
code.

There is a workaround that will let you load the variable like the height if
you have this variable in a file; this is using a new object named
AnyInputFile

The script below shows how to do this, before running the script please
create a file named “Height.txt” with some number in like “1.87”

Main = {

//This will read in the the Height text file which is only one number
“1.87”

//The value will end up in the T vector of the HeightFun since there are
only one number

AnyInputFile HeightFun={

 FileName ="Height.txt";

};

//This will be the height which has been read in from the file

AnyVar HeightTest=HeightFun.T[0];

AnyBodyStudy MyStudy = {

 RecruitmentSolver = MinMaxSimplex;

 Gravity = {0.0, -9.81, 0.0};

};

}; // Main

I hope this helps you move on, otherwise please do not hesitate to write
again.

Best regards

Søren, AnyBody Support


From: anyscript@yahoogroups.com [mailto:anyscript@yahoogroups.com] On Behalf
Of isabelgarciamu
Sent: 31 October 2007 12:09
To: anyscript@yahoogroups.com
Subject: [AnyScript] Re: new version 3.0

HI Christian,
This is an awful news, because all of our files are programmed with
the #include statement and it’s impossible for us to write all of the
variables we use in the .any files.
We have been working in this topic for more than a year and I don’t
undestand how the new version isn’t prepared to run with includes.
We have come up against serious difficulties to run simple exercicies
in version 2.0, because a lot of errors appear and we thought thanks
to version 3.0 we could work easily, but the thing is that now, we
can’t use it.
Do you know if it’s possible to do something about it?
Thanks
Isabel

— In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“AnyBody Support” <support@…> wrote:
>
> Hi Isabel
>
> Thanks you. I downloaded it and found the error you were talking about.
> To begin with there was an error that came up in both versions of
> AnyBody, but that was a minor indentation problem I think.
> The problem you was talking about was the one with the AnyVar
> body_height = #include “txt\body_height.txt”; right?
>
> The new version of AnyBody is different in the include statement,
> because it is not allowed to do that anymore, su I suggest the
> solution to the problem is to write the variable in the .any file.
> Will this not work for you?
>
> Best regards
> Christian, AnyBody Support
>
> — In anyscript@yahoogrou <mailto:anyscript%40yahoogroups.com> ps.com,
“isabelgarciamu”
> <isabelgarciamu@> wrote:
> >
> > Hi!
> > I have a problem with the new version anybody 3.0. I have tried to run
> > a simple example that worked well in anybody 2.0, but it appears an
> > error with the includes, inmediately.
> > I had changed some instructions in repository 6.0, so I have modified
> > the same in repository 6.1 to it worked well with anybody 6.1, but
> > another error appears.
> > I would like to send you the repositories to have a look at them. How
> > could I do?
> >
> > Somebody has had the same problem with the new version?
> > Thanks!
> >
> > Isabel
> >
>

[Non-text portions of this message have been removed]