Is This Content Helpful?
How can we make this better? Please provide as much detail as possible.
Contact our Support Team
Instructions provided describe how to use a VBA script in the Field Calculator to calculate latitude and longitude values for polygon centroids.
Code:
Dim Output As Double
Dim pArea As IArea
Set pArea = [Shape]
Output = pArea.Centroid.X
Last Published: 5/5/2016
Article ID: 000009189