laptop and a wrench

Bogue

When a locator is copied to SDE, user should be given an opportunity to select destination Config Keyword.

Dernière publication: August 25, 2014 No Product Found
Numéro d’ID de bogue NIM004383
EnvoiSeptember 26, 2006
Dernière modificationJune 5, 2024
S’applique àNo Product Found
Version trouvée9.2
StatutWill Not Be Addressed

Informations supplémentaires

We apologize that we were unable to address this issue within the current product support cycle. If the issue continues to affect your work in a supported release, please contact Technical Support.

Solution de contournement

Use the following VBA script to change the config keyword of the locator.Private Sub CopyLocator() CopyLocatorToSDEWorkspace "<a href="file:c:/MyLocators" target="_blank">c:\MyLocators</a>", "MyLocator1", "myconn.sde", "MyKeyword"End SubPrivate Sub CopyLocatorToSDEWorkspace(localWksDir As String, locatorName As String, sdeConnFile As String, configKeyword as String) Dim locMgr As ILocatorManager2 Set locMgr = New LocatorManager ' get the full name of the ArcSDE connection file Dim fullConnFileName As String fullConnFileName = Environ("USERPROFILE") + "\Application Data\ESRI\ArcCatalog\" + sdeConnFile ' open ArcSde connection Dim sdeLocWks As ILocatorWorkspace Set sdeLocWks = locMgr.GetLocatorWorkspaceFromPath(fullConnFileName) ' get locator from a local folder Dim localLocWks As ILocatorWorkspace Set localLocWks = locMgr.GetLocatorWorkspaceFromPath(localWksDir) Dim loc As ILocator Set loc = localLocWks.GetLocator(locatorName) ' copy the locator to ArcSDE workspace sdeLocWks.AddLocator locatorName, loc, configKeyword, NothingEnd Sub

Étapes pour reproduire

ID de bogue: NIM004383

Logiciel:

  • No Product Found

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