There is a features request for revolving a sketch into a solid.
I thought I might try googling a little to see what I could come up with.
http://lignumcad.sourceforge.net/doc/en/HTML/SOHTML/TechnicalReference.html
http://www.opencascade.org/org/forum/thread_8675/
Ok…. I think I found the magic term. BRepPrimAPI_MakeRevol
And this looks very very interesting here:
http://www.opencascade.org/org/forum/thread_13617/