How to get the unit cell parameters
From Computational Biophysics and Materials Science Group
PBC TCL File
Save the following text into a tcl file and execute it. Modify it accordingly.
#get the x, y, z lengths of Solvation box set xLen [lindex [lindex [pbc get -now] 0] 0] set yLen [lindex [lindex [pbc get -now] 0] 1] set zLen [lindex [lindex [pbc get -now] 0] 2]
For command-line VMD users, notice that the following code needs to be added in the front of tcl file.
package require pbctools