*tcl in .bas
Posted: Sat Feb 28, 2015 2:12 pm
Hi all,
i'm having a problem using *tcl in my .bas files. GiD raises an error whenever the return value of my tcl function is not an integer. This is also true for the example program:
*tcl(proc MultiplyByTwo { x } { return [expr {$x*2}] })
*Set var a=tcl(MultiplyByTwo *p1)
(given in http://www.gidhome.com/component/manual ... c_commands)
If *p1 is not an integer but a real like 0.2 GiD raises an error ("Error into an *Operation expression in set var").
Seems like an odd error since the manual states that the return value from *tcl has to be "a numerical result".
Greetings
i'm having a problem using *tcl in my .bas files. GiD raises an error whenever the return value of my tcl function is not an integer. This is also true for the example program:
*tcl(proc MultiplyByTwo { x } { return [expr {$x*2}] })
*Set var a=tcl(MultiplyByTwo *p1)
(given in http://www.gidhome.com/component/manual ... c_commands)
If *p1 is not an integer but a real like 0.2 GiD raises an error ("Error into an *Operation expression in set var").
Seems like an odd error since the manual states that the return value from *tcl has to be "a numerical result".
Greetings