Solved
Hi,
The problem is subtle.
Prime goes through the sheet first to evaluate global variables only designated with global equal sign.
Prime then goes through the file a second time from top to bottom left to right evaluating normal equal sign ":=".
z.min is only defined on the second pass so global definition cannot see zmin.
Solution is to define things with ":=" while working top to bottom, left to right.
For instance Kr is not defined before function cr(ze)
If it is necessary to use a globally defined function define all variables as parameters of the function.

Cheers
Terry
Welcome to the PTC Community
No account yet? Create an account
Please use your PTC eSupport account.
LoginEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.



