ApplicationCat = (ESRI.ArcGIS.CatalogUI.IGxApplication)ArcCatalog.Application; IGxSelection Selected; IEnumGxObject SelectedObjects; IGxObject SelectedObject; //get the selection of the contents window Selected = ApplicationCat.Selection; if (Selected.Count > 0) { SelectedObjects = Selected.SelectedObjects; //loop through the selection while ((SelectedObject = SelectedObjects.Next()) != null) { IName ObjectType = Dataset.InternalObjectName; }
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.