running tcl command
Posted: Tue Mar 01, 2016 4:07 pm
Hi
I want to runt the Tcl command with argument, For example in the tcl file i defined
proc GetElement { elemtype, i } {
set e [GiD_Info Mesh Elements $elemtype $i $i]
return $e
}
in the bas file I called
*tcl(GetElement Hexahedra 1)
But it doesn't work, nor
*set var et=Hexahedra
*tcl(GetElement *et 1)
What is the calling syntax of tcl command in this case?
I want to runt the Tcl command with argument, For example in the tcl file i defined
proc GetElement { elemtype, i } {
set e [GiD_Info Mesh Elements $elemtype $i $i]
return $e
}
in the bas file I called
*tcl(GetElement Hexahedra 1)
But it doesn't work, nor
*set var et=Hexahedra
*tcl(GetElement *et 1)
What is the calling syntax of tcl command in this case?