Skip navigation
All Places > Esri Technical Support > Blog > 2012 > December
2012
The new Python Add-ins for ArcGIS 10.1 bring a whole new opportunity for customizations.  The pythonaddins module provides additional functionality within add-ins that is not available in stand-alone scripts or geoprocessing script tools.  Three of these functions that allow user input or interaction are: OpenDialog, SaveDialog, and MessageBox.

Each of these functions allow information to be collected from the user.  It is up to the programmer to determine what to do with that information.

The OpenDialog and Save Dialog functions return two different values depending on how the user interacts with the dialog.  When the user selects a dataset and clicks either Open or Save, it returns the full path of the dataset chosen.  If the Cancel button is clicked it returns 'None'.
DialogCancel.jpg

Value being passed to a print statement when clicked.



The MessageBox function works in a similar way; however, it returns the string value representing the message button pressed.  For example, when the Ignore button is clicked it returns 'Ignore'.Below is a sample python add-in with comparison between the code and the dialogs:

A) The Open Dialog opens.
B) A file is chosen, and the Open button is clicked.  The file is added to the map.
C) The Cancel button is clicked which opens the Warning Message.
D) The Retry button is clicked which reopens the Open Dialog.
E) The Cancel button is clicked which opens a final Warning Message.OpenDialogWindows.jpg

OpenDialogScript5.jpg

The above sample add-in is available on ArcGIS.com: Dialog Windows and Messages

Timothy H. – Senior Support Analyst
esri_language-150x150.jpgI am not a native English speaking person – yes, I learned English fairly well in school while travelling, and achieved a very good level of understanding through working in Support for Esri Germany – but I naturally prefer information in ‘my’ language, German.  Many Esri Support resources are available in localized languages, such as when using the ArcGIS 10.1 web help. Within the ArcGIS 10.1 web help, switching between languages is quite simple – just use the provided drop-down.



What do you do when the information you need is not within the ArcGIS 10.1 web help? Or the information is for ArcGIS 10.0?Web Help

One trick I use often when receiving web help links in English from is to look at the URL.

For example, in this URL, notice the en for English: http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/What_is_ArcGIS/00v200000007000000/

By just changing the small, but important, en to de (for German) I can access the localized help link in German:http://help.arcgis.com/de/arcgisdesktop/10.0/help/#/What_is_ArcGIS/00v200000007000000/

Languages that are implemented at ArcGIS 10.0 web help:
    • Es for Spanish
    • Fr for French
    • De for  German
    • Ja for Japanese
Note: Russian (Ru) and Chinese (Ch) are not available at ArcGIS 10.0 web help.  These languages were newly introduced with ArcGIS 10.1.

Other Support Resources


The web help is just a small portion of the vast knowledge available for ArcGIS.  There are also language-based Sub Forums on the ArcGIS Resource Center, or your Esri distributor can provide translated product information. In some instances, a collection of technical articles in your mother tongue may be available from your local distributor.  For example, on the Esri Germany Support Site, you can find information about installation, authorization or special needs like transformations between coordinate systems.

Just have a look!Anna Schwabedal - Esri Germany Support

Filter Blog

By date: By tag: