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:
- You may modify the code sample. This step is not required.
- Compile the code sample.
How to Use:
Once compiled, the Sample XY Search locator appears in the ArcFM Locator tool pull-down menu.
- Select Sample XY Search in the Locator tool.
All of the files shown below are required for the solution to build successfully.
|Miner.Samples.XYSearchStrategy.csproj||C# project containing the code to generate a custom search strategy|
|SampleXYSearch.cs||The class module for the search strategy.|
|SampleXYSearchUI.cs||The user interface for the custom search strategy object|
|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|