From: Phelan Jr., Frederick R. Dr. (frederick.phelan_at_nist.gov)
Date: Mon Feb 21 2011 - 16:01:52 CST

I am trying to define a script to draw a geometry using variables. The script contains commands like:

set xmax 100
...
draw line {0 0 0} {$xmax 0 0}

However, the execution of the draw line command gives:

vmd > draw line {0 0 0} {$xmax 0 0}
expected floating-point number but got "$xmax" <--error message

Also tried,

vmd > draw line {0 0 0} {expr $xmax 0 0}
need three numbers for a vector <--error message

as well as numerous other variations. I guess this is a Tcl error I am getting ... can anyone help me with the syntax?

Thanks,
Fred

________________________________
Frederick R. Phelan Jr., Ph.D.
Complex Fluids Group
Polymers Division
National Institute of Standards and Technology
________________________________
NIST, Bldg. 224/Rm. A209
100 Bureau Dr., STOP 8542
Gaithersburg, MD 20899-8542
301.975.6761 (VOX)
301.975.4924 (FAX)
Frederick.Phelan_at_nist.gov
My Polymers Home Page<http://www.nist.gov/mml/polymers/complex_fluids/fred-phelan.cfm>