Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{alias:gvar}
h2. Name

*gvar* — Get Geocap variables and stausstatus

h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}

*set var \[gvar _variable_]*

{panel}

h2. Description

The *gvar* command in the context *set var \[gvar _variable_]* will transfer the Geocap variable or status of the variable into the the Tcl variable; in this case *var*. The *gvar* command is used in advanced scripting when reading internal Geocap variables or status is necessary.

h2. Arguments
TheThere is a long list of variables that can be attached to the *gvar* command as an argument.

 
h2. Examples
The following example show 
{indent}Disablesthe use of gvar command. 

tracing.{indent} 

*maxblockcount* _count_ 
{indent}How many lines to keep in the command log window. The default value is 2000.{indent} 
 
h2. Examples
The following example show the use of gvar command. 

h3. Commands at different levels

{noformat:|borderWidth=1|bgColor=#eeeeee}

{noformat}


{noformat:|borderWidth=1|bgColor=#eeeeee{noformat:|borderWidth=1|bgColor=#eeeeee}
set numpoi [gvar numpoint]
set n3 [expr $numpoi / 3]
set pp [points x y z]
dhi data
set i 0
for {set j 0} {$j < $n3} {incr j} {
for {set k 0} {$k < 3} {incr k} {
set a [lindex $pp $i]
incr i
set b [lindex $pp $i]
incr i
set c [lindex $pp $i]
eval sta $a $b $c
incr i
}
rea ter
mhi data app
}

{noformat}


{pagebreak}