Hi @johnster100. Simple, yet interesting case. After trying both the DrawingView.RotateByAngle() method and simply trying to set an angle to the DrawingView.Rotation property, and both failed, I decided to try it manually, which finally worked, interestingly enough. So, I stated looking into a way to automate that manual process by code. The simplest way I know how is to execute the same command that the manual tool uses, then use the SendKeys.SendWait() method to simulate navigating the dialog by keyboard interaction. Here is the code routine that worked to rotate the view by 90 degrees for me. This is of course a last resort solution, and is most likely not the most stable way to do it. And I'm not sure if the needed order of operations, as far as keyboard interaction, will work for everyone either. If not, it may take a little trial an error testing, by doing it manually using the keyboard, recording what keys you had to use, then putting that into the code.
oView = ActiveSheet.View("VIEW2").View
Dim oDDoc As DrawingDocument = oView.Parent.Parent
oSS = oDDoc.SelectSet
oSS.Clear
oSS.Select(oView)
oCD = ThisApplication.CommandManager.ControlDefinitions.Item("DrawingViewRotateCtxCmd")
oSS.Select(oView)
oCD.Execute2(False)
AppActivate(ThisApplication.Caption)
System.Windows.Forms.SendKeys.SendWait("{DOWN}^A90{TAB}{UP}{ENTER}")
If this solved your problem, or answered your question, please click ACCEPT SOLUTION.
Or, if this helped you, please click (LIKE or KUDOS) 👍.
If you want and have time, I would appreciate your Vote(s) for My IDEAS :bulb: or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)