Correction. The way to do this is to check the extents of the drawing view in the x and y directions. If the x extents are less than the y extents then the drawing view needs to be rotated. The code to accomplish this in a drawing containing one view looks like this. Just run it while in a drawing - it will select the first drawing view, check its extents and rotate if required. Enjoy.
Option Explicit
Dim swApp As Object
Dim DrawingDoc As Object
Dim SelMgr As Object
Dim SheetView As Object
Dim FirstView As Object
Dim ViewOutline As Variant
Dim FirstViewName As String
Dim X_ViewExtents, Y_ViewExtents As Double
Dim BoolVal As Boolean
Const NinetyDegreesInRadians = 1.57079632679
Sub main()
Set swApp = CreateObject("SldWorks.Application"

Set DrawingDoc = swApp.ActiveDoc
Set SheetView = DrawingDoc.GetFirstView
Set FirstView = SheetView.GetNextView
ViewOutline = FirstView.GetOutline
X_ViewExtents = ViewOutline(2) - ViewOutline(0)
Y_ViewExtents = ViewOutline(3) - ViewOutline(1)
If (X_ViewExtents < Y_ViewExtents) Then
FirstViewName = FirstView.Name
BoolVal = DrawingDoc.Extension.SelectByID(FirstViewName, "DRAWINGVIEW", 0, 0, 0, False, 0, Nothing)
BoolVal = DrawingDoc.DrawingViewRotate(NinetyDegreesInRadians)
End If
DrawingDoc.ClearSelection2 (True)
End Sub