ArcGIS Pro SDK二次开发打开属性表
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ArcGIS.Core.CIM; using ArcGIS.Core.Data; using ArcGIS.Core.Geometry; using ArcGIS.Desktop.Catalog; using ArcGIS.Desktop.Core; using ArcGIS.Desktop.Editing; using ArcGIS.Desktop.Extensions; using ArcGIS.Desktop.Framework; using ArcGIS.Desktop.Framework.Contracts; using ArcGIS.Desktop.Framework.Dialogs; using ArcGIS.Desktop.Framework.Threading.Tasks; using ArcGIS.Desktop.Layouts; using ArcGIS.Desktop.Mapping; using System.IO; using ArcGIS.Core.Data.DDL; using System.Xml.Linq; using System.ComponentModel; using ArcGIS.Desktop.Framework.Events; using ArcGIS.Desktop.Mapping.Events; using ArcGIS.Desktop.Core.Events; using ArcGIS.Desktop.Editing.Events; using System.Collections; using ArcGIS.Desktop.Internal.Core; using System.Collections.ObjectModel; using ArcGIS.Core.Data.Raster; using ArcGIS.Desktop.Core.UnitFormats; using System.Windows.Input; protected override void OnClick() { var lyrs = MapView.Active.Map.GetLayersAsFlattenedList().OfType<FeatureLayer>(); MapView.Active.SelectLayers(lyrs.ToList()); var openTableBtnCmd = FrameworkApplication.GetPlugInWrapper("esri_editing_table_openTablePaneButton") as ICommand; if (openTableBtnCmd != null) { // Let ArcGIS Pro do the work for us if (openTableBtnCmd.CanExecute(null)) { openTableBtnCmd.Execute(null); } } }