AnyOutputFile

Dear AnySupporters:

I have three simple questions about application of AnyOutputFile.

  1. It seems that the function of the numerical format does not work.
    For example, I put 10 in the statement “NumberFormat = {Digits =
    10;};”, in the output file, I always get 15 digits.

  2. “AnyValue &<Insert name0> = <Insert object reference (or full
    object definition)>;” does not work. It works only when I changed it
    to “AnyVar <Insert name0> = …”.

  3. How to output a variable into a file, which is not an output
    variable. For example, I am interested in looking the F0 values for
    all muscles. These parameters exist in the 3E muscle model.

John Wu

The Third problem has been resolved. I figured out how to do it.

— In anyscript@yahoogroups.com, “johnzengwu” <jwu@…> wrote:
>
> Dear AnySupporters:
>
> I have three simple questions about application of AnyOutputFile.
>
> 1. It seems that the function of the numerical format does not work.
> For example, I put 10 in the statement “NumberFormat = {Digits =
> 10;};”, in the output file, I always get 15 digits.
>
> 2. “AnyValue &<Insert name0> = <Insert object reference (or full
> object definition)>;” does not work. It works only when I changed it
> to “AnyVar <Insert name0> = …”.
>
> 3. How to output a variable into a file, which is not an output
> variable. For example, I am interested in looking the F0 values for
> all muscles. These parameters exist in the 3E muscle model.
>
> John Wu
>

Hi John

Thanks for your questions

It seems that you have helped us identifying some issues in the
AnyOutPutFile object and the object inserter.

Question 1: This is simply a bug, i have tested it and it will always
return all 15 decimals no matter the number of digits requested. We
will work on resolving this issue for the next release.

Question2: Again you are right, the object inserter suggests that
you should use a reference sign “&” and this is not allowed when
pointing at AnyValues or a derived class from this. The object
inserter works in the same way for all objects and it was not taken
into account that some objects did not allow the reference sign to be
used, this will be corrected.
It is also correct that the AnyValue can not be used; you need to use
a derived class from it, like the AnyVar as you suggest. Again the
explanation originates from the general way the object inserter was
created; we will try to find a good solution for this problem.

Thanks again for making us aware of these things.

Best regards
Søren, AnyBody Support

— In anyscript@yahoogroups.com, “johnzengwu” <jwu@…> wrote:

>
> Dear AnySupporters:
>
> I have three simple questions about application of AnyOutputFile.
>
> 1. It seems that the function of the numerical format does not work.
> For example, I put 10 in the statement “NumberFormat = {Digits =
> 10;};”, in the output file, I always get 15 digits.
>
> 2. “AnyValue &<Insert name0> = <Insert object reference (or full
> object definition)>;” does not work. It works only when I changed it
> to “AnyVar <Insert name0> = …”.
>
> 3. How to output a variable into a file, which is not an output
> variable. For example, I am interested in looking the F0 values for
> all muscles. These parameters exist in the 3E muscle model.
>
> John Wu
>