#import rs script
import rhinoscriptsyntax as rs
import math
#define a center point
base=rs.GetPoint(“Base of Cylinder”)
bPt = base
#define the height of Cylinder
height = rs.GetPoint(“Which height do you want for Cylinder?”)
hPt = height
#define a radius
myRadius=rs.GetReal(“Define the Radius”)
rPt = myRadius
#create a Cylinder
obj = rs.AddCylinder(bPt,hPt,rPt, cap = True)
#rotate on vertcle axis
rs.RotateObjects(obj,bPt,90)