HOW TO
Below is a section of sample code which can change the precision of the coordinates displayed in the ArcMap status bar.
Note:
It is currently a limitation in the software that the code must be executed in the Project and does not work when stored in the Normal.mxt.
Code:
'Changes decimals that you see in the bottom of the ArcMap display
Sub main()
Dim pDoc As IMxDocument
Dim pRepUnit As IReportUnitFormat
Dim pNumericFormat As INumericFormat
Set pDoc = ThisDocument
Set pRepUnit = pDoc
Set pNumericFormat = New NumericFormat
With pNumericFormat
.AlignmentOption = esriAlignRight
.RoundingOption = esriRoundNumberOfDecimals
.AlignmentWidth = 15
.RoundingValue = 5
.ShowPlusSign = False
.UseSeparator = True
.ZeroPad = False
End With
Set pRepUnit.NumericFormat = pNumericFormat
End Sub
Get help from ArcGIS experts
Download the Esri Support App