Select to view content in your preferred language

Setting DataFrame.scale messes up my scale bars

1003
1
12-19-2012 12:29 AM
JT2
by
Emerging Contributor
When I use the regular pan/zoom tools or Data Driven Pages, ArcGIS correctly updates my scale bar according to the way I set it.

But when I alter a map layout's extent using the DataFrame.scale property, perhaps preceded by DataFrame.zoomToSelectedFeatures(), my scale bar gets messed up, see the image below. The top image shows the scale bar correctly resized; the bottom image shows what happens when I alter zoom in Python via the DataFrame class.

[ATTACH=CONFIG]20062[/ATTACH]

So what gives? Is this a bug? Is there some kind of refresh procedure that I can use to ensure that my scale bar is resized properly when using Python to batch export maps? FYI, my scale bar is set to 'Adjust Division Value' when resizing...
Tags (2)
0 Kudos
1 Reply
JeffBarrette
Esri Regular Contributor
Is the scale bar wrong or is it just resizing when your new scale is very different than a previous scale?

What is your scalebar "when resizing ..." property set to:

Adjust width
Adjust division value (default) - that is what I'm seeing for you.
Adjust number of divisions
Adjust divisions and division values

If you set the scale in the UI, do you get the same scale bar?

Jeff
0 Kudos