Copy link to clipboard
As per https://helpx.adobe.com/in/illustrator/using/rotate-view.html
View objects don't have a rotate function. The closest I can think of is rorating everything (artboard and artwork) multiples of right angles:
Yes I read it as a rotate function too, but actually it's a property, which I guess makes sense.
See this post:
app.activeDocument.activeView.rotate = 45; // degrees clockwise