I think this question has been answered here and here. There is also a uservoice request to make this easier to do from OpenStudio.