In ArcMap 10.1 from the python window I am attempting to rotate a symbol for a point. After I run my code I can look at the symbol properties and the rotation expression is set on the symbol, however the symbol in the data frame is not rotated.
What am I missing to get the points in the data frame to show the point rotated?
(also worth noting, if I click on "OK" in the expression builder and rotate windows, then click "apply" in the layer properties window, then "OK" the symbols are then displayed in the data frame properly)
import snippets101 as snippets
snippets.GetStandaloneModules()
snippets.GetDesktopModules()
import comtypes.gen.esriCarto as esriCarto
import comtypes.gen.esriFramework as esriFramework
import comtypes.gen.esriArcMapUI as esriArcMapUI
import comtypes.gen.stdole as stdole
import comtypes.gen.esriDisplay as esriDisplay
from snippets101 import CType
from snippets101 import NewObj
pApp = snippets.GetCurrentApp()
pMxDoc = CType(pApp.Document, esriArcMapUI.IMxDocument)
pMap = pMxDoc.FocusMap
pAV = CType(pMap, esriCarto.IActiveView)
pFeatureLayer = CType(pMxDoc.FocusMap.Layer(0), esriCarto.IFeatureLayer)
pGeoFeatureLayer = CType(pFeatureLayer, esriCarto.IGeoFeatureLayer)
pRotationRenderer = CType(pGeoFeatureLayer.Renderer,esriCarto.IRotationRenderer2)
pRotationRenderer.SetSymbolRotation3DFlags = (4)
pRotationRenderer.SetSymbolRotation3DExpressions('','','[SDO_ORIENTATION] * -1')
pRotationRenderer.SymbolRotation3DRotationTypeZ = 0
pAV.refresh()