laptop and a wrench

Bug

Shape.Area throws an error in CalculateField tool when run on a shapefile using VB syntax.

Last Published: August 25, 2014 ArcGIS for Desktop
Bug ID Number NIM045219
SubmittedMay 8, 2009
Last ModifiedJune 5, 2024
Applies toArcGIS for Desktop
Version found9.3
Operating SystemWindows OS
Operating System VersionXP
StatusWill Not Be Addressed

Additional Information

No Public Explanation

Workaround

Public Sub CalcFields()Dim pGP As ObjectSet pGP = CreateObject("esriGeoprocessing.GPDispatch.1")On Error GoTo eh'Location of the toolboxpGP.AddToolbox ("C:\Documents and Settings\<profile_name>\Application Data\ESRI\ArcToolbox\My Toolboxes\TEST.tbx")'Name of the script (Calcualte Fields)pGP.Script1 MsgBox pGP.GetMessages(), vbOKOnly, "Test" eh: Debug.Print Err.Number & " " & Err.DescriptionEnd SubThere is few more ways of running geoprocessing functionality using VBA, check out this articlehttp://support.esri.com/index.cfm?fa=knowledgebase.techarticles.articleShow&d=31110

Steps to Reproduce

Bug ID: NIM045219

Software:

  • ArcGIS for Desktop

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options