![arcmap add xy data toolbar shortcut arcmap add xy data toolbar shortcut](https://desktop.arcgis.com/es/arcmap/10.4/extensions/aviation-charting/GUID-108F90D8-952A-4F56-9DA0-AFEA3E432E16-web.png)
Project the data into a coordinate system that uses the units the values should be in, and perform the calculation. Add a conversion into the calculation expression.
![arcmap add xy data toolbar shortcut arcmap add xy data toolbar shortcut](https://desktop.arcgis.com/en/arcmap/10.3/manage-data/editing-parcels/GUID-F4F46868-DD58-4812-A964-4232B683D5EC-web.png)
To display calculated data in different units other than the data's units, perform one of the following: If the data is stored in feet, the calculated values appear in feet. The units of the calculated values are the units the features are stored in, not the map units or display units of the data frame currently worked on. In the Expression line, the small, one line area below the Pre-Logic box, type Output and click OK to calculate the field.
#Arcmap add xy data toolbar shortcut code
#Arcmap add xy data toolbar shortcut how to
Select the data layer for the list box, and click OK if prompted by the Start Editing dialog box. The following Python script demonstrates how to use the AddXY function in a stand-alone script.Click Editor, and select Start Editing from the pop-up menu.Select Editor Toolbar from the Tools menu if the Editor Toolbar is not open.
![arcmap add xy data toolbar shortcut arcmap add xy data toolbar shortcut](https://www.esri.com/arcgis-blog/wp-content/uploads/2017/12/map-ribbon-tab_final2.png)
If it is necessary to add new fields to the attribute table, refer to the ArcGIS Desktop 9.3 Help: Adding and deleting fields in a table for more information. This procedure can be used with new or existing fields in an attribute table. These code examples return a type 'double' value, so use them to calculate either an existing field of type 'double' or a new field of type 'double' that has been added to the table. This article provides instructions to calculate X, Y, and Z values in an attribute table using the Field Calculator and Visual Basic for Applications (VBA). Refer to the Related Links section for more information. Note:įor ArcGIS Desktop 10.x, the same results can be obtained using the Add XY Coordinates and Calculate Geometry Attributes tools. ArcGIS version 10.0 is the last version of ArcGIS to support Microsoft Visual Basic for Applications VBA). These instructions are for ArcGIS 8.x and 9.x only. How To: Calculate X, Y, and Z values in an attribute table using Field Calculator Summary