4

How can created an ArcMap Python add-in using ArcGIS 10.1 to open automatically data frame properties And change the background color of another?

2

Unfortunately, there is no way you could do this with arcpy. The DataFrame object you will work with doesn't have a property for the color of the data frame exposed. See full list of supported methods and properties here.

You will need to use ArcObjects to extend ArcMap or write a custom add-in. See the Developing with ArcGIS Help section.

  • Thanks Alex for the answer,Do you know of a command / script in Python that allows change the background color of MXD? – Sivan Oct 3 '14 at 6:02
  • @Sivan, as far as I know, this is not reachable from Python in ArcGIS and thus there are no scripts that could do that without you going into the Data Frame properties (or using ArcObjects). This is because the map document background is always defined based on the active data frame background color. – Alex Tereshenkov Oct 3 '14 at 7:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.