Aarcgisprosdk10.8 Release
5ac5058d创建于 2020年2月21日历史提交
文件最后提交记录最后更新时间
6 年前
6 年前
10 年前
9 年前
6 年前
6 年前
README

Custom selection extension

This sample demonstrates how to create a complete add-in. The sample is based around a selection theme but its purpose is to demonstrate multiple add-in components working together. This add-in contains an extension, a dockview, a toolbar with several buttons and tools, and a menu. All components are disabled until the extension is selected on the Extensions dialog box. The extension does not load until it needs to (it delay loads). Similarly, the dockview only gets created once the Toggle DockView button is clicked.
 
This sample has also been localized to Chinese(PRC).
Language:              C#, VB
Subject:               Framework
Organization:          Esri, http://www.esri.com
Date:                  10/17/2019
ArcObjects SDK:        10.8
Visual Studio:         2017, 2019
.NET Target Framework: 4.5

Resources

Usage

  1. In Visual Studio, click the Build menu and click Build Solution.
  2. Load some data in ArcMap.
  3. Click the Customize menu, click Toolbars, then choose the Selection Add-In toolbar. (See the second screen shot for the Selection AddIn toolbar.)
  4. Click the Customize menu and click Extensions. Select the Selection Sample Extension check box on the Extensions dialog box. (See the first screen shot.)
  5. Make a selection using one of the tools.
  6. Optionally, use the combo box to choose target selection layers.
  7. Optionally, click the Zoom to layer menu to zoom to a selected layer.
  8. The dockable window will report selected features count. (See the second screen shot for the highlighted dockable window.)
  9. Use the toggle button to toggle the dockable window. The button is highlighted in a yellow box on the second screen shot.
  10. To see the localized version, change the format to Chinese(PRC) on the Regional and Language Options dialog box (accessed from the Control Panel).

Screen shot of the Extensions dialog box.
Screen shot of the Extensions dialog box.
Screen shot of ArcMap showing the custom toolbar and dockable window.
Screen shot of ArcMap showing the custom toolbar and dockable window.


Licensing

Development licensing Deployment licensing
ArcGIS Desktop Basic ArcGIS Desktop Basic
ArcGIS Desktop Standard ArcGIS Desktop Standard
ArcGIS Desktop Advanced ArcGIS Desktop Advanced