Script outputs a circle but not a cylinder

 From:  bemfarmer
5441.6 
For some reason, my copy paste only does one line at a time. Maybe there is some hidden formatting?
Maybe the code should be in a code box?
I cannot get box script to work, get data type mismatch.
Cylinder script does not do anything.
How are you running these scripts?

EDITED: 1 Oct 2012 by BEMFARMER