Copy the orientation of a drawing view to the assembly (through api)

Can anybody help me figure our how to rotate the assembly to the exact position in which it is displayed within a drawing View?  In other words, from a drawing select a view and then open the model to that same orientation?

SolidworksDrawings And Detailing