laptop and a wrench

Bogue

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

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM045219
EnvoiMay 8, 2009
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée9.3
Système d’exploitationWindows OS
Version du système d’exploitationXP
StatutWill Not Be Addressed

Informations supplémentaires

No Public Explanation

Solution de contournement

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

Étapes pour reproduire

ID de bogue: NIM045219

Logiciel:

  • ArcGIS for Desktop

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement