Karina,
Correct, the content of the mathscript block can not be autocoded. The mathscript block is very open which makes it hard to generate code for it. AutoCode will still generate code for the model, but it will warn in the Xmath window:
MathScript Block (blockname): Block not supported
In the code that it generates it will insert a comment in place of the block:
/* ---------------------------- MathScript Block */
/* {blockname} */
/* ===> Block not supported. */
So it would be possible to AutoCode the model, but you would have to replace the comment with code that is equivalent to the MathScript function.
Carl L
National Instruments