ArcFM Engine Developer Guide
Search Strategy Locator

Resource Center Home

Product Availability: ArcFM Desktop, ArcFM Engine, ArcFM Server

This sample is the code for the XY Coordinates locator included with the product installation. This search method allows you to locate features by their location on the map. Either enter coordinates manually, or use the XY tool to click a point on the map and enter the coordinates of that point in the X and Y fields.

This sample does not contain input validation (however, the product version does). You may wish to include this in your implementation.

If you're implementing this sample for your ArcFM Server web application, you must also implement the Search Strategy Task developer sample. This second sample makes the XY locator available for inclusion in your ArcFM Server web application.

Developer Sample: Developer Samples\Search Strategies\C# - Search Strategy\XY Locator

How to Implement:

  1. You may modify the code sample. This step is not required.
  2. Compile the code sample.

How to Use:

Once compiled, the Sample XY Search locator appears in the ArcFM Locator tool pull-down menu.

  1. Select Sample XY Search in the Locator tool.

Additional Information:

Requires:

All of the files shown below are required for the solution to build successfully. Download these files from the ArcFM Solution Resource Center here.

File

Description

Miner.Samples.XYSearchStrategy.csproj

C# project containing the code to generate a custom search strategy

SampleXYSearch.cs
  (view code)

The class module for the search strategy.

SampleXYSearchUI.cs
  (view code)

The user interface for the custom search strategy object

The following file provides supporting information for the .cs files and are required for the project to compile successfully.

AssemblyInfo.cs

Assembly metadata

SampleXYSearchUI.resx

Module to support the project

LocatorXY.bmp

Icon for the Locator button that appears in the ArcFM toolbar

XYPointerTool.bmp

Icon for the XY tool button that appears on the XY search strategy user interface

XYSearchCursor.cur

Image for the cursor when the XY tool is selected

The following reference files are required for the project to compile successfully.

Esri.ArcGIS.Carto

Esri.ArcGIS.Display

Esri.ArcGIS.Geodatabase

Esri.ArcGIS.Geometry

Esri.ArcGIS.System

Miner.Framework

Miner.Framework.Engine

 

Miner.Interop.Framework

Miner.Interop.FrameworkUI

Miner.System

System

System.Drawing

System.Windows.Forms

 

Key Interfaces: IMMSearchStrategyUI, IMMSearchConfiguration, IMMSearchStrategy, IMMSearchResults, IMMResultsProcessor

 

 


Send Comment to ArcFMdocumentation@schneider-electric.com