Syntax
array set x [ABMCALCUL expr]
Description
The evaluation of mathematical expressions requires the setup of the internal calculator. This is done by the program before starting the script. The current state of the calculator at that time is used.
If the expression contains internal values (e.g. the station "$s") or if the expression depends directly or indirectly on internal values, the calculation uses the last set up value. The evaluation of such expressions is not useful.
Argument |
Dimension |
Meaning |
expr |
TEXT |
Mathematical expression |
Return array
Array item |
Dimension |
Meaning |
error |
INT |
Error code |
info |
TEXT |
Error information |
expr |
DOUBLE |
Result of the expression |
Scopes
All
Examples
puts $outfile ""
puts $outfile " Evaluation of table 'webwidth'"
puts $outfile " ------------------------------"
puts $outfile ""
puts $outfile " Station s webwith(s)"
puts $outfile " ---------------------------------"
set format2 " %12.6f %20.6f"
for { set s 0.0 } { $s < 155.01 } { set s [expr {$s + 0.5}] } {
array unset x
array set x [ABMCALCUL "webwidth($s)"]
puts $outfile [format $format2 $s $x(value)]
}
It is assumed that a text file outfile has been opened for writing and the project contains a table "webwidth” . This table is evaluated in steps of 0.5 in the range 0 to 155. The data is written formatted into the text file.
|
(C) ALLPLAN GmbH |
Privacy policy |