laptop and a wrench

Bogue

Interacting with the Utility Network toolbar crashes the ArcMap application if a custom or an existing command is programmatically added to the toolbar.

Dernière publication: August 25, 2014 ArcGIS for Desktop
Numéro d’ID de bogue NIM047024
EnvoiJuly 23, 2009
Dernière modificationJune 5, 2024
S’applique àArcGIS for Desktop
Version trouvée9.3.1
Langue du programmeC#
Système d’exploitationWindows OS
Version du système d’exploitationXP
Version de correction10.0
StatutFixed

Solution de contournement

A workaround to this problem is to ensuring in the code that the Utility Network Analysis Extension is started before finding the toolbar and adding the command.Here is the code that will do this: void OnInitialized() { this.m_UtilityNetworkToolbarUID = (m_application as IObjectFactory).Create("esriSystem.UID") as UID; this.m_UtilityNetworkToolbarUID.Value = "esriEditorExt.UtilityNetworkToolBar"; this.m_UtilityDetermineClientsAndValvesUID = (m_application as IObjectFactory).Create("esriSystem.UID") as UID; this.m_UtilityDetermineClientsAndValvesUID.Value ="{8603563F-D907-4271-BDC2-9160C6FDA123}"; UID extUID = new UIDClass(); extUID.Value = "esriEditorExt.UtilityNetworkAnalysisExt"; object obj = new object(); IExtensionManagerAdmin pExtAdmin = new ExtensionManagerClass(); pExtAdmin.AddExtension(extUID, ref obj); CheckMenuValidity(); }

Étapes pour reproduire

ID de bogue: NIM047024

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