TimothyHales
Esri Notable Contributor
since ‎04-10-2014
50 Badges Earned
Pathfinder Pathfinder
View All Badges Earned
‎01-15-2026
2859 Posts created
965 Kudos given
226 Solutions
2130 Kudos received
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

My Ideas

(3 Idea Submissions)

Latest Contributions by TimothyHales

POST
0
0
5075
POST
0
0
1059
POST
0
0
1059
POST
0
0
613
POST
0
0
691
BLOG


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 -->
0
0
1721
IDEA
-->
4
3
2673
POST
0
0
1546
BLOG


Within the Projections and Transformations toolset is a tool called Convert Coordinate Notation (Data Management > Projections and Transformations).  This tool will convert between the following coordinate formats:
  • DD—Decimal degrees
  • DDM —Decimal minutes
  • DMS—Degrees-minutes-seconds
  • GARS—Global Area Reference System
  • GEOREF—World Geographic Reference System
  • UTM —Universal Transverse Mercator
  • USNG—United States National Grid
  • MGRS—Military Grid Reference System

To convert between coordinate formats using the Convert Coordinate Notation tool, follow these steps:
  1. Open the tool and select the table or feature class that has the values for conversion.
  2. Set an output location for the converted values to be saved.
  3. Set the X/Y fields and the Input/Output coordinates.
  4. Optionally, set an ID as the output will not carry over existing attribute fields.
ConvertCoordinates.jpg

5. Set up a table join so that the new format can be accessed in the original table.

OutputTable.jpg


Be sure to check out the Convert Coordinate Notation tool help for more information and also to learn the format of each notation.
Timothy H. – Senior Support Analyst

-->
0
0
4591
POST
0
0
3513
POST
0
0
3189
POST
0
0
33826
POST
0
0
2584
BLOG
ArcGIS and Google Earth store and interpret KML files differently in that the Google Earth version is rotated by 180 degrees.  Because of this rotation difference, you will need to use one of the export presets based upon the software that will be used to view the data.KML_PresetOption.jpgThe Google Earth option sets a heading correction of 180 degrees.  This allows the model to display correctly.  Keep in mind though, if you apply the Google Earth preset, the KML will not display correctly in ArcGlobe.
GE_Correct-300x272.png

©2012 Google and ©2012 Commonwealth of Virginia

Timothy H. - Raster/3D Support Analyst
-->
0
0
1551
POST
0
0
1419
Activity Feed