Sample - Search Strategy Locator

Version 3

    Versions: 9.3.1 - current

    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.


    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.


    Requires:

    All of the files shown below are required for the solution to build successfully.

     

    FileDescription
    Miner.Samples.XYSearchStrategy.csprojC# project containing the code to generate a custom search strategy
    SampleXYSearch.csThe class module for the search strategy.
    SampleXYSearchUI.csThe user interface for the custom search strategy object
    AssemblyInfo.csAssembly metadata
    SampleXYSearchUI.resxModule to support the project
    LocatorXY.bmpIcon for the Locator button that appears in the ArcFM toolbar
    XYPointerTool.bmpIcon for the XY tool button that appears on the XY search strategy user interface
    XYSearchCursor.curImage for the cursor when the XY tool is selected