> Script Details
report inappropriate content
Oct 1 1998
Status of work
ArcScripts is intended for the free exchange of scripts and tools related to ESRI software products. Please alert the moderator if this script is a demo, trial-version, or an advertisement for a retail product.
Adds X and Y coordinates of features to Attribute Table.
Adds two new fields, named X-coord and Y-coord, to the table of the first active theme in the TOC and fills the respective fields with the X,Y coordinates of the selected points (or all points if no selection is defined) in a point theme. If instead the active theme is a polygon theme, then the X,Y coordinates of the polygon centroid are calculated. If the theme is projected, the output coordinates will also be projected.