In the .bas side both your syntax are ok, use the simplest one
but the arguments of a Tcl procedure must be separed by spaces, without the comma!!
instead of
proc GetElement { elemtype, i } {
set e [GiD_Info Mesh Elements $elemtype $i $i]
return $e
}
must be
proc GetElement { elemtype i } {
set e [GiD_Info Mesh Elements $elemtype $i $i]
return $e
}
You can see here a tutorial about the standart Tcl scripting language: Tcl Tutorial