Can I create volumes on the fly programattically?

I too was wondering this, i couldnt find anything outside the editor for adding navigational volumes.