roby76

Rotate view with vba

Discussion created by roby76 on Nov 10, 2011
Latest reply on Nov 10, 2011 by roby76
Hi
I would to rotate the view with vba by an angle define (like set "Rotation" in "Data frame properties").
I use this code to set Map scale but I can't set Map Rotation:

Dim pMxApp As IMxApplication
Set pMxApp = Application
Dim pMxDoc As IMxDocument
Set pMxDoc = ThisDocument
Dim map1 As IMap
Set map1 = pMxDoc.Maps.Item(0)
pMxDoc.Maps.Item(0).MapScale = 10000
Dim pActiveView As IActiveView
Set pActiveView = pMxDoc.ActiveView
pActiveView.Refresh


Could someone tell me how to rotate view?!
Now I am using ArcGIS 9.1 version.

Thanks a lot!
Roberto

Outcomes