I've gotten stuck writing an IronPython script to interact with a map.
I've gotten stuck writing an IronPython script to interact with a map. I can't seem to get a reference to a feature layer in order to programmatically change the ColorAxis. Has anyone done this or have any idea how to get a reference to a feature layer?
I can get the reference to the Map Chart and to the layers in the chart, but I can't get into the Feature Layer. Once I've found the proper layer, I can't interact with it.
# Configure the map chart
# Get the visualization reference
for visualization in Document.ActivePageReference.Visuals:
if visualization.Title == "Map Chart":
visualContentObject = visualization.As[VisualContent]()
for eachLayer in visualContentObject.Layers:
if eachLayer.Title == "World View":