source: branches/nanovis2/examples/zoo/drawing/drawing.tcl @ 3305

Last change on this file since 3305 was 3305, checked in by ldelgass, 11 years ago

sync with trunk

File size: 1.3 KB
Line 
1# ----------------------------------------------------------------------
2#  EXAMPLE: Rappture <string> elements
3# ======================================================================
4#  AUTHOR:  Michael McLennan, Purdue University
5#  Copyright (c) 2004-2012  HUBzero Foundation, LLC
6#
7#  See the file "license.terms" for information on usage and
8#  redistribution of this file, and for a DISCLAIMER OF ALL WARRANTIES.
9# ======================================================================
10package require Rappture
11
12# open the XML file containing the run parameters
13set driver [Rappture::library [lindex $argv 0]]
14
15set value [$driver get input.choice(analysis).current]
16append out "Analysis Choice:  $value\n"
17set value [$driver get input.number(trapezoid_top).current]
18append out "Trapezoid Top:  $value\n"
19set value [$driver get input.number(substrate_length).current]
20append out "Substrate Length:  $value\n"
21set value [$driver get input.number(feature_length).current]
22append out "Feature Length:  $value\n"
23set value [$driver get input.number(feature_height).current]
24append out "Feature Height:  $value\n"
25set value [$driver get input.string(indeck).current]
26append out "String:  $value\n"
27
28$driver put output.string(out).about.label "Echo of inputs"
29$driver put output.string(out).current $out
30
31# save the updated XML describing the run...
32Rappture::result $driver
33exit 0
Note: See TracBrowser for help on using the repository browser.