Here is an example iLogic rule that you can play with. As with most things in Inventor, there are many different ways to do things, and this is just one way. There are many different ways to identify which view you are wanting to target with this rule, but in this example, I'm just specifying which view I want by its name (you will need to change that name to match the name of the view in your drawing, before it will work for you).
The code starts out by getting the 'active' document, checking its type, to make sure it is a drawing, then setting it as the value of a variable, so we can continue to work with it. Then it specifies which sheet in the drawing document we want to work with (the 'active' sheet in this case). Then it attempts to find the view with the specified name, by looping through all the views on that sheet, and checking their names against the one we specified. Then it uses that method I linked to in the last post, and specifies 90 degrees as the angle, and True (True = clockwise).
If ThisApplication.ActiveDocumentType <> DocumentTypeEnum.kDrawingDocumentObject Then
MsgBox("A Drawing Document must be active for this rule to work. Exiting.",vbOKOnly+vbCritical, "WRONG DOCUMENT TYPE")
Exit Sub
End If
Dim oDDoc As DrawingDocument = ThisApplication.ActiveDocument
'specify which sheet
Dim oSheet As Inventor.Sheet = oDDoc.ActiveSheet
'specify which view
Dim oView As DrawingView
For Each oView In oSheet.DrawingViews
'get the view by its name
If oView.Name = "VIEW4" Then '<<< CHANGE THIS VIEW NAME >>>
oView.RotateByAngle(90, True)
End If
Next
'there are many different ways to identify which view you want
'You can also select the view manually, either before, or in the middle of the rule, if set up that way
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 💡or you can Explore My CONTRIBUTIONS
Wesley Crihfield

(Not an Autodesk Employee)