Can you script modeling functions?

 From:  NCEL (NCELIKGIL)
1005.1 
Can you script modeling functions like revolve? In other words when you pick an object it automatically revolves the object with a default axis? Or to automatically generate a certain shape like a helix or some other mathematical objects that are preset according to coordinates in the script? Or does the scripting feature strictly control just the UI?