protected override void OnClick() { try { UID commandID = new UIDClass(); commandID.Value = "esriArcMapUI.ZoomToSelectedCommand"; ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value); if(comm != null) comm.Execute(); } catch { } }
comm
ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID);
protected override void OnClick() { try { UID commandID = new UIDClass(); commandID.Value = "esriArcMapUI.MxSelectionMenu"; ICommandItem comm = ArcMap.Application.Document.CommandBars.Find(commandID.Value); if(comm != null) comm.Execute(); } catch { } }
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.